migrate: links do not have modes

This commit is contained in:
K. Lange 2018-12-05 13:11:06 +09:00
parent 75514b83fd
commit 98f712e9af

View File

@ -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);
} }