=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/unifdef/unifdef.c,v retrieving revision 1.20 retrieving revision 1.21 diff -c -r1.20 -r1.21 *** src/usr.bin/unifdef/unifdef.c 2015/08/20 22:32:42 1.20 --- src/usr.bin/unifdef/unifdef.c 2015/10/03 20:12:53 1.21 *************** *** 47,53 **** static const char copyright[] = #include "version.h" ! "@(#) $Author: deraadt $\n" "@(#) $URL: http://dotat.at/prog/unifdef $\n" ; --- 47,53 ---- static const char copyright[] = #include "version.h" ! "@(#) $Author: tedu $\n" "@(#) $URL: http://dotat.at/prog/unifdef $\n" ; *************** *** 350,355 **** --- 350,357 ---- errx(2, "-o cannot be used with multiple input files"); if (argc > 1 && !inplace) errx(2, "multiple input files require -m or -M"); + if (argc == 0 && inplace) + errx(2, "can't edit stdin in place"); if (argc == 0) argc = 1; if (argc == 1 && !inplace && ofilename == NULL)