=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/usbhidaction/usbhidaction.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/usbhidaction/usbhidaction.c 2006/04/23 08:51:24 1.7 --- src/usr.bin/usbhidaction/usbhidaction.c 2006/07/09 23:02:21 1.8 *************** *** 1,4 **** ! /* $OpenBSD: usbhidaction.c,v 1.7 2006/04/23 08:51:24 fgsch Exp $ */ /* $NetBSD: usbhidaction.c,v 1.7 2002/01/18 14:38:59 augustss Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: usbhidaction.c,v 1.8 2006/07/09 23:02:21 mk Exp $ */ /* $NetBSD: usbhidaction.c,v 1.7 2002/01/18 14:38:59 augustss Exp $ */ /* *************** *** 56,62 **** int verbose = 0; int isdemon = 0; ! int reparse = 1; struct command { struct command *next; --- 56,62 ---- int verbose = 0; int isdemon = 0; ! int reparse = 0; struct command { struct command *next; *************** *** 136,141 **** --- 136,144 ---- isdigit(dev[0]) ? "uhid" : "", dev); dev = devnamebuf; } + + if (demon && conf[0] != '/') + errx(1, "config file must have an absolute path, %s", conf); fd = open(dev, O_RDWR); if (fd < 0)