diff options
author | Sebastian Deiss <sebastian.deiss@atos.net> | 2017-06-19 13:35:58 +0200 |
---|---|---|
committer | Sebastian Deiss <sebastian.deiss@atos.net> | 2017-06-19 13:35:58 +0200 |
commit | 9be70cd096a0dc83ff516a5f67c859094aa5fb43 (patch) | |
tree | 338b54cf59de205b4702ebeaa3bb9bbfc9c1e132 | |
parent | 9f9a2f3d6723e3f07dc4d373cdd05c47f489587f (diff) |
Fix issue #1
-rw-r--r-- | bin/chown2me.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/chown2me.c b/bin/chown2me.c index 6cb7c1e..88395b2 100644 --- a/bin/chown2me.c +++ b/bin/chown2me.c @@ -84,7 +84,7 @@ int main(){ strcat(fullpath,dir->d_name); fprintf(logfile_fd, "chown for %s\n", fullpath); // change owner to 1000 - int res = chown(fullpath, uid, gid); + int res = lchown(fullpath, uid, gid); if (res != 0){ perror("chown"); return res; |