Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22

Thread: HELP NEEDED: bash parsing of C return values

  1. #21
    Join Date
    Feb 2007
    Beans
    2,729

    Re: HELP NEEDED: bash parsing of C return values

    You're welcome - glad you found it!

    And the lesson leared??? ALWAYS examine return codes from ALL system calls, functions, and ALWAYS generate some form if diagnostic (syslog, print to STDERR, etc.). A permissions problem should be detected as soon as an open(2), stat(2), or whatever call fails.

    Best of Luck!
    MrC

  2. #22
    Join Date
    Oct 2006
    Location
    my apartment
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HELP NEEDED: bash parsing of C return values

    agreed!

    ironic, tho that permission checks i was performing, were being confused by the wrong user
    doing the check!

    lesson #2, always be aware of what "user" is actually executing each of your functions, etc.

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •