diff options
author | John Crispin <blogic@openwrt.org> | 2015-03-28 15:41:58 +0100 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-03-28 18:35:21 +0100 |
commit | 91da63d3d3fd680c805dd1a1b78df5b8731a8173 (patch) | |
tree | ec9a568a398ae536ccf7ac89a23942a60ef25c98 /initd/early.c | |
parent | 74d835463e05e5761f6f5271e487f299f29d3f07 (diff) | |
download | unitd-91da63d3d3fd680c805dd1a1b78df5b8731a8173.tar unitd-91da63d3d3fd680c805dd1a1b78df5b8731a8173.zip |
properly handle return codes
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'initd/early.c')
-rw-r--r-- | initd/early.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/initd/early.c b/initd/early.c index 5ee49ee..593449b 100644 --- a/initd/early.c +++ b/initd/early.c @@ -77,7 +77,8 @@ early_mounts(void) mkdir("/tmp/run", 0777); mkdir("/tmp/lock", 0777); mkdir("/tmp/state", 0777); - symlink("/tmp", "/var"); + if (symlink("/tmp", "/var")) + ERROR("failed to symlink /tmp -> /var\n"); } static void |