add missing x... S_ISDIR doesn't set errno, and err uses it, errx

doesn't...
This commit is contained in:
John-Mark Gurney 2013-02-28 07:28:22 +00:00
parent a5cc04eebd
commit fee37ba27e
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=41058

View file

@ -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