Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMkdirStickyUmask (0.24 sec)

  1. src/os/os_unix_test.go

    		}
    		t.FailNow()
    	}
    }
    
    // Issue 23120: respect umask when doing Mkdir with the sticky bit
    func TestMkdirStickyUmask(t *testing.T) {
    	if runtime.GOOS == "wasip1" {
    		t.Skip("file permissions not supported on " + runtime.GOOS)
    	}
    	t.Parallel()
    
    	const umask = 0077
    	dir := newDir("TestMkdirStickyUmask", t)
    	defer RemoveAll(dir)
    
    	oldUmask := syscall.Umask(umask)
    	defer syscall.Umask(oldUmask)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:32:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
Back to top