* util/ntp-genkeys.c (snifflink): Ignore ENOENT, too.
bk: 398a5ab9pRM36pb6AsnUtbnn8KZ0bg
2000-08-04 Harlan Stenn <stenn@whimsy.udel.edu>
+ * util/ntp-genkeys.c (snifflink): Ignore ENOENT, too.
+
* ntpd/ntp_proto.c (peer_xmit): Crypto cleanup
* ntpd/ntp_crypto.c: Cleanup
* ntpd/ntp_control.c: Join the club
rc = readlink(file, buf, sizeof buf);
if (-1 == rc) {
- if (EINVAL == errno)
+ switch (errno) {
+ case EINVAL: /* Fall thru */
+ case ENOENT:
return;
+ }
fprintf(stderr, "%s: readlink(%s) failed: (%d) %s\n",
progname, file, errno, strerror(errno));
exit(1);