recvjob.c (a6381ce166a6ae23c0e45ba9254003193e0048f5) | recvjob.c (53953407b64c459cea6e9065d901ceb0b527c795) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 97 unchanged lines hidden (view full) --- 106 frecverr("unknown printer %s", printer); 107 break; 108 case PCAPERR_TCLOOP: 109 fatal(pp, "potential reference loop detected in printcap file"); 110 default: 111 break; 112 } 113 | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 97 unchanged lines hidden (view full) --- 106 frecverr("unknown printer %s", printer); 107 break; 108 case PCAPERR_TCLOOP: 109 fatal(pp, "potential reference loop detected in printcap file"); 110 default: 111 break; 112 } 113 |
114 (void) close(2); /* set up log file */ | 114 (void) close(STDERR_FILENO); /* set up log file */ |
115 if (open(pp->log_file, O_WRONLY|O_APPEND, 0664) < 0) { 116 syslog(LOG_ERR, "%s: %m", pp->log_file); 117 (void) open(_PATH_DEVNULL, O_WRONLY); 118 } 119 120 if (chdir(pp->spool_dir) < 0) 121 frecverr("%s: chdir(%s): %s", pp->printer, pp->spool_dir, 122 strerror(errno)); --- 282 unchanged lines hidden --- | 115 if (open(pp->log_file, O_WRONLY|O_APPEND, 0664) < 0) { 116 syslog(LOG_ERR, "%s: %m", pp->log_file); 117 (void) open(_PATH_DEVNULL, O_WRONLY); 118 } 119 120 if (chdir(pp->spool_dir) < 0) 121 frecverr("%s: chdir(%s): %s", pp->printer, pp->spool_dir, 122 strerror(errno)); --- 282 unchanged lines hidden --- |