=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/xinstall/xinstall.c,v retrieving revision 1.73 retrieving revision 1.74 diff -c -r1.73 -r1.74 *** src/usr.bin/xinstall/xinstall.c 2019/06/28 13:35:05 1.73 --- src/usr.bin/xinstall/xinstall.c 2020/04/07 09:40:09 1.74 *************** *** 1,4 **** ! /* $OpenBSD: xinstall.c,v 1.73 2019/06/28 13:35:05 deraadt Exp $ */ /* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: xinstall.c,v 1.74 2020/04/07 09:40:09 espie Exp $ */ /* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */ /* *************** *** 150,156 **** usage(); /* must have at least two arguments, except when creating directories */ ! if (argc < 2 && !dodir) usage(); /* get group and owner id's */ --- 150,156 ---- usage(); /* must have at least two arguments, except when creating directories */ ! if (argc == 0 || (argc == 1 && !dodir)) usage(); /* get group and owner id's */