spool.c (6cec9cad762b6476313fb1f8e931a1647822db6b) | spool.c (e56bad4a94aff7e3e43200568b211de872a52aea) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2008-2014, Simon Schubert <2@0x2c.org>. |
|
2 * Copyright (c) 2008 The DragonFly Project. All rights reserved. 3 * 4 * This code is derived from software contributed to The DragonFly Project | 3 * Copyright (c) 2008 The DragonFly Project. All rights reserved. 4 * 5 * This code is derived from software contributed to The DragonFly Project |
5 * by Simon 'corecode' Schubert <corecode@fs.ei.tum.de>. | 6 * by Simon Schubert <2@0x2c.org>. |
6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 11 * 1. Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * 2. Redistributions in binary form must reproduce the above copyright --- 270 unchanged lines hidden (view full) --- 284 char *queuefn; 285 char *mailfn; 286 287 bzero(queue, sizeof(*queue)); 288 LIST_INIT(&queue->queue); 289 290 spooldir = opendir(config.spooldir); 291 if (spooldir == NULL) | 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 12 * 1. Redistributions of source code must retain the above copyright 13 * notice, this list of conditions and the following disclaimer. 14 * 2. Redistributions in binary form must reproduce the above copyright --- 270 unchanged lines hidden (view full) --- 285 char *queuefn; 286 char *mailfn; 287 288 bzero(queue, sizeof(*queue)); 289 LIST_INIT(&queue->queue); 290 291 spooldir = opendir(config.spooldir); 292 if (spooldir == NULL) |
292 err(1, "reading queue"); | 293 err(EX_NOINPUT, "reading queue"); |
293 294 while ((de = readdir(spooldir)) != NULL) { 295 queuefn = NULL; 296 mailfn = NULL; 297 298 /* ignore non-queue files */ 299 if (de->d_name[0] != 'Q') 300 continue; --- 140 unchanged lines hidden --- | 294 295 while ((de = readdir(spooldir)) != NULL) { 296 queuefn = NULL; 297 mailfn = NULL; 298 299 /* ignore non-queue files */ 300 if (de->d_name[0] != 'Q') 301 continue; --- 140 unchanged lines hidden --- |