execve() x system()

From: Leonardo Chiquitto Filho (leonardoat_private)
Date: Fri Jun 22 2001 - 10:10:03 PDT

  • Next message: John Viega: "Re: Secure popen"

    hello,
    
    I've made some tests with execve() and system()
    and now some questions stay open here. I think
    you can help me.
    I wrote a more friendly interface to useradd.
    The problem is, I call 'useradd user' with execve()
    and then getpwname(user). At this point getpwname
    returns me NULL. Trying with system() it works.
    Any idea?
    
    nate
    



    This archive was generated by hypermail 2b30 : Sun Jun 24 2001 - 10:37:40 PDT