From: hyunuktak Date: Tue, 21 May 2019 02:25:31 +0000 (+0900) Subject: Remove realpath check to create file X-Git-Tag: accepted/tizen/unified/20190523.085211 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Faccepted%2Ftizen%2Funified%2F20190523.085211;p=platform%2Fcore%2Fconnectivity%2Fstc-manager.git Remove realpath check to create file Change-Id: I9b9c80aaad07f403c8712aa1ce2b4770450f6aba Signed-off-by: hyunuktak --- diff --git a/src/helper/helper-file.c b/src/helper/helper-file.c index 53dcad0..e2f284f 100755 --- a/src/helper/helper-file.c +++ b/src/helper/helper-file.c @@ -23,15 +23,10 @@ int fwrite_str(const char *path, const char *str) { _cleanup_fclose_ FILE *f = NULL; int ret; - char * t; assert(path); assert(str); - t = realpath(path, NULL); - ret_value_if(!t, -errno); - free(t); - f = fopen(path, "w"); ret_value_if(!f, -errno);