1 diff -up net-tools-1.60/slattach.c.slattach-fchown net-tools-1.60/slattach.c
2 --- net-tools-1.60/slattach.c.slattach-fchown 2000-10-28 12:59:41.000000000 +0200
3 +++ net-tools-1.60/slattach.c 2009-09-15 18:17:01.000000000 +0200
4 @@ -195,15 +195,17 @@ tty_lock(char *path, int mode)
10 /* Make sure UUCP owns the lockfile. Required by some packages. */
11 if ((pw = getpwnam(_UID_UUCP)) == NULL) {
12 if (opt_q == 0) fprintf(stderr, _("slattach: tty_lock: UUCP user %s unknown!\n"),
15 return(0); /* keep the lock anyway */
17 - (void) chown(saved_path, pw->pw_uid, pw->pw_gid);
18 + (void) fchown(fd, pw->pw_uid, pw->pw_gid);
24 if (saved_lock != 1) return(0);