migrate: links do not have modes
This commit is contained in:
parent
75514b83fd
commit
98f712e9af
@ -52,7 +52,7 @@ void copy_link(char * source, char * dest, int mode, int uid, int gid) {
|
|||||||
char tmp[1024];
|
char tmp[1024];
|
||||||
readlink(source, tmp, 1024);
|
readlink(source, tmp, 1024);
|
||||||
symlink(tmp, dest);
|
symlink(tmp, dest);
|
||||||
chmod(dest, mode);
|
//chmod(dest, mode); /* links don't have modes */
|
||||||
chown(dest, uid, gid);
|
chown(dest, uid, gid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user