Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for chdir (0.1 sec)

  1. src/os/exec_posix.go

    	// If there is no SysProcAttr (ie. no Chroot or changed
    	// UID/GID), double-check existence of the directory we want
    	// to chdir into. We can make the error clearer this way.
    	if attr != nil && attr.Sys == nil && attr.Dir != "" {
    		if _, err := Stat(attr.Dir); err != nil {
    			pe := err.(*PathError)
    			pe.Op = "chdir"
    			return nil, pe
    		}
    	}
    
    	sysattr := &syscall.ProcAttr{
    		Dir: attr.Dir,
    		Env: attr.Env,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. src/os/exec/exec_test.go

    	path string
    	err  error
    	sync.Once
    }
    
    func chdir(t *testing.T, dir string) {
    	t.Helper()
    
    	prev, err := os.Getwd()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if err := os.Chdir(dir); err != nil {
    		t.Fatal(err)
    	}
    	t.Logf("Chdir(%#q)", dir)
    
    	t.Cleanup(func() {
    		if err := os.Chdir(prev); err != nil {
    			// Couldn't chdir back to the original working directory.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  3. internal/kms/config.go

    				cert := certificate.Get()
    				return &cert, nil
    			}
    		}
    
    		var caDir string
    		if opts != nil {
    			caDir = opts.CADir
    		}
    		conf.RootCAs, err = certs.GetRootCAs(env.Get(EnvKESServerCA, caDir))
    		if err != nil {
    			return nil, err
    		}
    
    		client := kes.NewClientWithConfig("", conf)
    		client.Endpoints = endpoints
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 14:31:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top