summaryrefslogtreecommitdiff
path: root/src/unlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unlink.c')
-rw-r--r--src/unlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unlink.c b/src/unlink.c
index 51a26b190..3fbe95592 100644
--- a/src/unlink.c
+++ b/src/unlink.c
@@ -26,6 +26,7 @@
#include <sys/types.h>
#include "system.h"
+#include "die.h"
#include "error.h"
#include "long-options.h"
#include "quote.h"
@@ -83,7 +84,7 @@ main (int argc, char **argv)
}
if (unlink (argv[optind]) != 0)
- error (EXIT_FAILURE, errno, _("cannot unlink %s"), quoteaf (argv[optind]));
+ die (EXIT_FAILURE, errno, _("cannot unlink %s"), quoteaf (argv[optind]));
return EXIT_SUCCESS;
}