Hi i have this code that used to wrok fine in unix mp-ras.
After the migration to linux suse i recompiled the script and now when it is executed i get a Memory fault (coredump) message.
Does anybody knows why' what should I change?
tks
SCRIPT
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
int main(int argc, char * argv[])
{
setuid( 0 );
/*chmod( argv[1], S_IRWXU || S_IRWXG || S_IROTH );*/
chmod( argv[1], 00775 );
}