add missing x... S_ISDIR doesn't set errno, and err uses it, errx
doesn't...
This commit is contained in:
parent
a5cc04eebd
commit
fee37ba27e
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=41058
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ printf(getstr(1));
|
|||
#include <err.h>
|
||||
...
|
||||
if (!S_ISDIR(st.st_mode))
|
||||
err(1, "argument is not a directory");
|
||||
errx(1, "argument is not a directory");
|
||||
</programlisting>
|
||||
|
||||
<para>This can be transformed to print an error message by
|
||||
|
|
Loading…
Reference in a new issue