Reputation
Top tag
Next privilege 5 Rep.
Participate in meta
Badges
0 0 0
Impact
~69 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Jun
2
comment SMB/CIFS mount not working with exec() call
@Mark, I solved by using mount() system calls.
May
22
comment SMB/CIFS mount not working with exec() call
Latest code: if(execl("/bin/mount", "/bin/mount", "-t", "cifs", smbAddr, "/mnt", "--verbose", "-o user=cifsuser,pass=cifs12,nounix", (char*) NULL) < 0) { perror("execl() "); }
May
21
comment SMB/CIFS mount not working with exec() call
mount: mounting cifs on //xx.xx.xx.xx/userdir /mnt failed: No such file or directory
May
20
comment SMB/CIFS mount not working with exec() call
did not help :(
May
19
comment SMB/CIFS mount not working with exec() call
Tried with path= "/bin" and "/bin/" and arg0 = "mount" It did not work. execl() fails.