index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/util.c | 5 |
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index d08af4e2..a4b9e0ff 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -212,17 +212,14 @@ int _alpm_lckmk(char *file) return(-1); } } - return(fd > 0 ? 0 : -1); - return(0); + return(fd > 0 ? fd : -1); } /* Remove a lock file */ int _alpm_lckrm(char *file) { - /* ORE - we should close the file descriptor opened by lckmk */ return(unlink(file) == -1); } |