parsemode: No need to return after eprintf

Also, since parsemode exits on failure, don't bother checking return
value in xinstall (this would never trigger anyway because mode_t can be
unsigned).
This commit is contained in:
Michael Forney
2016-11-30 23:27:59 -08:00
committed by Laslo Hunhold
parent aded902891
commit 87f40834a3
2 changed files with 3 additions and 8 deletions

View File

@@ -215,11 +215,8 @@ main(int argc, char *argv[])
owner = getuid();
}
if (mflag) {
if (mflag)
mode = parsemode(mflag, mode, 0);
if (mode < 0)
return 1;
}
if (tflag) {
memmove(argv - 1, argv, argc);