BSD 4_3 release
[unix-history] / usr / src / usr.lib / lpr / lprm.c
index be2fbe5..6197a25 100644 (file)
@@ -1,6 +1,18 @@
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#ifndef lint
+char copyright[] =
+"@(#) Copyright (c) 1983 Regents of the University of California.\n\
+ All rights reserved.\n";
+#endif not lint
+
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)lprm.c     4.5 (Berkeley) 7/17/83";
-#endif
+static char sccsid[] = "@(#)lprm.c     5.2 (Berkeley) 11/17/85";
+#endif not lint
 
 /*
  * lprm - remove the current user's spool entry
 
 /*
  * lprm - remove the current user's spool entry
@@ -38,6 +50,7 @@ main(argc, argv)
 
        name = argv[0];
        gethostname(host, sizeof(host));
 
        name = argv[0];
        gethostname(host, sizeof(host));
+       openlog("lpd", 0, LOG_LPR);
        if ((p = getpwuid(getuid())) == NULL)
                fatal("Who are you?");
        if (strlen(p->pw_name) >= sizeof(luser))
        if ((p = getpwuid(getuid())) == NULL)
                fatal("Who are you?");
        if (strlen(p->pw_name) >= sizeof(luser))