Created attachment 8756 [details] busybox-1.32.1-config-file When running testsuite, one of the "start-stop-daemon" testcases fails: # ./runtest -v start-stop-daemon ====================== echo -ne '' >input echo -ne '' | start-stop-daemon -S -x true 2>&1; echo $? PASS: start-stop-daemon -x without -a ====================== echo -ne '' >input echo -ne '' | start-stop-daemon -S -a false 2>&1; echo $? PASS: start-stop-daemon -a without -x ====================== echo -ne '' >input echo -ne '' | start-stop-daemon -S false 2>&1; echo $? PASS: start-stop-daemon without -x and -a ====================== echo -ne '' >input echo -ne '' | start-stop-daemon -S -x /bin/false -a qwerty false 2>&1; echo $? FAIL: start-stop-daemon with both -x and -a --- expected +++ actual @@ -1 +1,2 @@ -1 +qwerty: applet not found +127 #
Hi Team, Can you please share update on requested failed case. Regards, -Dharan
Created attachment 8761 [details] Strace log
your /bin/false is a symplink to busybox? Then the failure is expected: busybox looks at argv[0] to determine what to do.
Hi Denys, > your /bin/false is a symplink to busybox? Yes, the /bin/false command is symbolic link to /bin/busybox. > Then the failure is expected: busybox looks at argv[0] to determine what to do. In this case, the test case output should be PASS right instead of FAIL? ---------------------------------- echo -ne '' | start-stop-daemon -S -x /bin/false -a qwerty false 2>&1; echo $? FAIL: start-stop-daemon with both -x and -a --- expected +++ actual @@ -1 +1,2 @@ -1 +qwerty: applet not found +127 ---------------------------------- Regards, -Dharan
>Yes, the /bin/false command is symbolic link to /bin/busybox. > >> Then the failure is expected: busybox looks at argv[0] to determine what to do. > >In this case, the test case output should be PASS right instead of FAIL? No, it'll fail. busybox looks at argv[0] to determine what to do. In this case, it sees "qwerty" in argv[0] and acts accordingly: says "qwerty: applet not found".