Menu

#255 With RUN_AS_USER, exit code is not correctly returned.

v3.0.5
closed-fixed
5
2013-04-05
2011-02-17
No

JSW script should return the exit code when used with RUN_AS_USER.

So instead of:
su -m $RUN_AS_USER -c "\"$REALPATH\" $2"
...
exit 0

It should be:
su -m $RUN_AS_USER -c "\"$REALPATH\" $2"
RUN_AS_USER_EXIT_CODE=$?
..
exit $RUN_AS_USER_EXIT_CODE

Discussion

  • Christian Mueller

    Etienne,

    thank you for your post.

    I will go over the script and include the suggested fix.

    cheers,
    christian

     
  • Christian Mueller

    • status: open --> closed-fixed
    • assigned_to: Christian Mueller
    • milestone: --> v3.0.5
     

Log in to post a comment.