SCCS-vsn: sbin/restore/Makefile 4.5
SCCS-vsn: sbin/restore/main.c 2.15
# Copyright (c) 1982 Regents of the University of California
#
# Copyright (c) 1982 Regents of the University of California
#
-# @(#)Makefile 4.4 (Berkeley) %G%
+# @(#)Makefile 4.5 (Berkeley) %G%
mv restor.o rrestor.o
install: rrestor restor
mv restor.o rrestor.o
install: rrestor restor
- install rrestor ${DESTDIR}/etc/rrestor
+ install -m 4755 rrestor ${DESTDIR}/etc/rrestor
install restor ${DESTDIR}/etc/restor
clean:
install restor ${DESTDIR}/etc/restor
clean:
/* Copyright (c) 1982 Regents of the University of California */
#ifndef lint
/* Copyright (c) 1982 Regents of the University of California */
#ifndef lint
-char version[] = "@(#)main.c 2.14 %G%";
+char version[] = "@(#)main.c 2.15 %G%";
#endif
/* Modified to include h option (recursively extract all files within
#endif
/* Modified to include h option (recursively extract all files within
if (host == 0)
goto nohost;
#endif
if (host == 0)
goto nohost;
#endif
+ setuid(getuid()); /* no longer need or want root privileges */
doit(command, argc, argv);
done(0);
}
doit(command, argc, argv);
done(0);
}