mkdir: make safe for libraries
authorEric Blake <ebb9@byu.net>
Thu, 29 Oct 2009 15:37:42 +0000 (09:37 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 30 Oct 2009 00:39:31 +0000 (18:39 -0600)
commit9c0937366b05d759689eed9525a1e18b669aacc6
treefda9a3548ca71b470b1d7d96483a3eb66b17e21a
parentb886ebac9e37729d68e765b141b099ec5b24ab2c
mkdir: make safe for libraries

xstrdup is too dangerous to use in a syscall replacement.

* modules/mkdir (Depends-on): Drop xalloc.
* lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
exit.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/mkdir.c
modules/mkdir