I'am trying to use flock on OpenWrt with musl and
busybox-git/HEAD. What happens here is this:

root@OpenWrt:/ flock test
flock: invalid number 'test'
root@OpenWrt:/ flock /tmp
flock: invalid number '/tmp'
root@OpenWrt:/ flock /tmp/test
flock: invalid number '/tmp/test'

root@OpenWrt:/ flock -x test
flock: invalid number 'test'
root@OpenWrt:/ flock -x /tmp
flock: invalid number '/tmp'
root@OpenWrt:/ flock -x /tmp/test
flock: invalid number '/tmp/test'

root@OpenWrt:/ flock
BusyBox v1.25.0.git (2016-01-06 23:08:01 CET) multi-call binary.

Usage: flock [-sxun] FD|{FILE [-c] PROG ARGS}

[Un]lock file descriptor, or lock FILE, run PROG

        -s      Shared lock
        -x      Exclusive lock (default)
        -u      Unlock FD
        -n      Fail rather than wait

so what is the expected usage?
or is this maybe a musl effect?

bye, bastian
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to