Straight from HEAD:
authorElrond <elrond@samba.org>
Tue, 4 Apr 2000 13:42:13 +0000 (13:42 +0000)
committerElrond <elrond@samba.org>
Tue, 4 Apr 2000 13:42:13 +0000 (13:42 +0000)
> Fix for compiler warning about invalid structure type.
> jeremy.

source/param/loadparm.c

index 6bdb631662cb3c357152b065155b55b0c282a9b3..142a34edcbbe919aee72aef5a0c5084169108920 100644 (file)
@@ -2209,7 +2209,7 @@ static BOOL handle_source_env(char *pszParmValue,char **ptr)
                /*
                 * Ensure this file is owned by root and not writable by world.
                 */
-               if(fstat(fileno(env), &st) != 0) {
+               if(sys_fstat(fileno(env), &st) != 0) {
                        DEBUG(0,("handle_source_env: Failed to stat file %s, Error was %s\n", fname, strerror(errno) ));
                        fclose(env);
                        return False;