projects
/
platform
/
core
/
connectivity
/
stc-manager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add retry mechanism for netlink socket creation
[platform/core/connectivity/stc-manager.git]
/
src
/
helper
/
helper-file.c
diff --git
a/src/helper/helper-file.c
b/src/helper/helper-file.c
index
53dcad0
..
e2f284f
100755
(executable)
--- 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);