k9core

Unnamed repository
Log | Files | Refs | LICENSE

commit b339661dc6d2bce1cf5ce02fa868b7aa0ea111cb
parent 52386386c8b13227b58a3e387a4d9b77a0e1f36d
Author: qorg11 <qorg@vxempire.xyz>
Date:   Sat, 20 Jun 2020 15:19:04 +0200

Merge branch 'master' of gitlab.com:call-cc/k9core

Diffstat:
Msrc/ln.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/ln.c b/src/ln.c @@ -13,12 +13,11 @@ main(int argc, char *argv[]) int opts, fd, fflag; while((opts = getopt(argc, argv, "sf")) != -1) { + if(opts == 'f') fflag=1; switch(opts) { - case 'f': - fflag=1; case 's': - if(fflag && (access(argv[3], F_OK) != 1)) { + if(fflag == 1 && (access(argv[3], F_OK) != 1)) { if(remove(argv[3]) == -1) rmdir(argv[3]); }