bad_chdir

bad_chdir - */ rv = chdir("");...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * Invalid calls to chdir() */ #include <unistd.h> #include <errno.h> #include <err.h> #include "test.h" static void chdir_empty(void) { int rv; /* * This is actually valid by some interpretations.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: */ rv = chdir(&quot;&quot;); report_test2(rv, errno, EINVAL, 0, &quot;chdir to empty string&quot;); } void test_chdir(void) { test_chdir_path(); chdir_empty(); }...
View Full Document

Ask a homework question - tutors are online