*/
/*
* This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
*/
#include <stdio.h>
else
rc = mknod(path, mode, dev);
- if (rc)
+ if (rc) {
+ rc = errno;
fprintf(stderr, "%s: cannot create `%s' with mode %#o: %s\n",
- argv[0], path, mode, strerror(errno));
+ argv[0], path, mode, strerror(rc));
+ }
return rc;
}