From: Craig Small Date: Wed, 19 Oct 2011 11:40:37 +0000 (+1100) Subject: Use ENOENT instead of EBADE for kFreeBSD X-Git-Tag: v22.15~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9f3713523333a4c7e274e3c4cdbbde308b6ee57;p=psmisc Use ENOENT instead of EBADE for kFreeBSD A small fix suggested by Petr Salinger for FreeBSD that doesn't have EBADE defined. Fixes Debian bug #631566 --- diff --git a/src/fuser.c b/src/fuser.c index 476fdf1..d687b1f 100644 --- a/src/fuser.c +++ b/src/fuser.c @@ -1917,7 +1917,11 @@ init_mntinfo(void) } } if (!list_empty(&mntinfo)) { +#ifdef EBADE errno = EBADE; +#else + errno = ENOENT; +#endif /* EBADE */ } join(&sort, &mntinfo); }