Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for currentUID (0.13 sec)

  1. src/os/user/lookup_stubs.go

    var (
    	// unused variables (in this implementation)
    	// modified during test to exercise code paths in the cgo implementation.
    	userBuffer  = 0
    	groupBuffer = 0
    )
    
    func current() (*User, error) {
    	uid := currentUID()
    	// $USER and /etc/passwd may disagree; prefer the latter if we can get it.
    	// See issue 27524 for more information.
    	u, err := lookupUserId(uid)
    	if err == nil {
    		return u, nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 07 16:09:09 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top