SCCS-vsn: usr.bin/xinstall/xinstall.c 5.20
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)xinstall.c 5.19 (Berkeley) %G%";
+static char sccsid[] = "@(#)xinstall.c 5.20 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
struct stat from_sb, to_sb;
int ch, no_target;
char *to_name;
struct stat from_sb, to_sb;
int ch, no_target;
char *to_name;
while ((ch = getopt(argc, argv, "cg:m:o:s")) != EOF)
switch((char)ch) {
while ((ch = getopt(argc, argv, "cg:m:o:s")) != EOF)
switch((char)ch) {
group = optarg;
break;
case 'm':
group = optarg;
break;
case 'm':
- mode = setmode(optarg, (mode_t)0, 0);
- if (mode == (mode_t)-1) {
+ if (setmode(optarg) == -1) {
(void)fprintf(stderr,
"install: invalid file mode.\n");
exit(1);
}
(void)fprintf(stderr,
"install: invalid file mode.\n");
exit(1);
}
break;
case 'o':
owner = optarg;
break;
case 'o':
owner = optarg;