From owner-cvs-sbin Tue Mar 5 19:30:32 1996 Return-Path: owner-cvs-sbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id TAA24315 for cvs-sbin-outgoing; Tue, 5 Mar 1996 19:30:32 -0800 (PST) Received: from sunrise.cs.berkeley.edu (sunrise.CS.Berkeley.EDU [128.32.38.121]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id TAA24218 Tue, 5 Mar 1996 19:30:02 -0800 (PST) Received: (from asami@localhost) by sunrise.cs.berkeley.edu (8.6.12/8.6.12) id TAA11575; Tue, 5 Mar 1996 19:32:00 -0800 Date: Tue, 5 Mar 1996 19:32:00 -0800 Message-Id: <199603060332.TAA11575@sunrise.cs.berkeley.edu> To: jkh@time.cdrom.com CC: rgrimes@gndrsh.aac.dev.com, jkh@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org In-reply-to: <27226.825881116@time.cdrom.com> (jkh@time.cdrom.com) Subject: Re: cvs commit: src/sbin/mount mount.c From: asami@cs.berkeley.edu (Satoshi Asami) Sender: owner-cvs-sbin@FreeBSD.ORG Precedence: bulk On second thought, try this one instead. The message is slightly shorter, making it fit on 80-line terminals for most cases. ;) === Index: mount.c =================================================================== RCS file: /usr/cvs/src/sbin/mount/mount.c,v retrieving revision 1.9 diff -u -r1.9 mount.c --- 1.9 1996/03/03 08:44:22 +++ mount.c 1996/03/06 03:27:47 @@ -332,8 +332,20 @@ (void)snprintf(execname, sizeof(execname), "%s/mount_%s", *edir, vfstype); execv(execname, (char * const *)argv); - warn("exec %s for %s", execname, name); } while (*++edir != NULL); + if (errno == ENOENT) { + char tmp[sizeof(edirs)+5]; + tmp[0] = '\0'; + edir = edirs; + do { + strcat(tmp, *edir); + strcat(tmp, ", "); + } while (*++edir != NULL); + /* now delete the last ", " */ + tmp[strlen(tmp)-2] = '\0'; + warn("exec mount_%s not found in %s", + vfstype, tmp); + } exit(1); /* NOTREACHED */ default: /* Parent. */ === Satoshi