82a5832a5b
* maint: improve documentation for fsync() calls * use sha256 rather than md5 to checksum file contents * maint: remove stale comment * document --help and --version * fix spelling in --help and man page * fix processing of lines starting with "rem" * bump version for release - add 3c52bd938975f7c5b32d7009f109ccbd2328c16d.patch . Fixes symlink handling when writing linked files. OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/crudini?expand=0&rev=13
30 lines
873 B
Diff
30 lines
873 B
Diff
From 3c52bd938975f7c5b32d7009f109ccbd2328c16d Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <P@draigBrady.com>
|
|
Date: Fri, 2 Dec 2016 17:19:55 +0000
|
|
Subject: [PATCH] replace a symlink target rather than the symlink itself
|
|
|
|
* NEWS: Mention the fix.
|
|
* crudini: Get the realpath() to replace.
|
|
* tests/test.sh: Add a test case.
|
|
|
|
Fixes issue #43
|
|
---
|
|
NEWS | 4 +++-
|
|
crudini | 2 +-
|
|
tests/test.sh | 6 ++++++
|
|
3 files changed, 10 insertions(+), 2 deletions(-)
|
|
|
|
Index: crudini-0.8/crudini
|
|
===================================================================
|
|
--- crudini-0.8.orig/crudini
|
|
+++ crudini-0.8/crudini
|
|
@@ -515,7 +515,7 @@ Options:
|
|
pass
|
|
|
|
if not self.output:
|
|
- self.output = self.cfgfile
|
|
+ self.output = os.path.realpath(self.cfgfile)
|
|
|
|
if self.cfgfile is None:
|
|
self.usage(1)
|