diff options
author | Joursoir <chat@joursoir.net> | 2022-08-20 12:15:30 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2022-08-22 00:18:40 +0300 |
commit | b018da7fb3d400036c38a3af6554ab25e408b9c8 (patch) | |
tree | 7a0c3143b6467c7ead9ffcd90d693b8599725abc | |
parent | 1a81a24b1dbdcdc299e5b817d309fcae692019a3 (diff) | |
download | lock-password-b018da7fb3d400036c38a3af6554ab25e408b9c8.tar.gz lock-password-b018da7fb3d400036c38a3af6554ab25e408b9c8.tar.bz2 lock-password-b018da7fb3d400036c38a3af6554ab25e408b9c8.zip |
lpass: delete obvious comments
-rw-r--r-- | src/lpass.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lpass.c b/src/lpass.c index c6a42cf..ae5c4b7 100644 --- a/src/lpass.c +++ b/src/lpass.c @@ -63,14 +63,13 @@ static int goto_maindir() { char *rootdir = xstrcat(getenv("HOME"), LOCKPASS_DIR, "/"); int retval = chdir(rootdir); - if(retval) // failed + if(retval) { if(errno == ENOENT) { - // create main directory: retval = mkdir(rootdir, S_IRWXU); if(retval && errno != EEXIST) { print_error("Error: %s\n", strerror(errno)); - } else { // try again: + } else { retval = chdir(rootdir); } } else { |