Appease the vndr God
Adjust paths that were not canonical. Add nested vendors that are required. Now no errors with latest `vndr`. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
		
							
								
								
									
										25
									
								
								vendor/github.com/godbus/dbus/transport_unixcred_linux.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								vendor/github.com/godbus/dbus/transport_unixcred_linux.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
// The UnixCredentials system call is currently only implemented on Linux
 | 
			
		||||
// http://golang.org/src/pkg/syscall/sockcmsg_linux.go
 | 
			
		||||
// https://golang.org/s/go1.4-syscall
 | 
			
		||||
// http://code.google.com/p/go/source/browse/unix/sockcmsg_linux.go?repo=sys
 | 
			
		||||
 | 
			
		||||
package dbus
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"io"
 | 
			
		||||
	"os"
 | 
			
		||||
	"syscall"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func (t *unixTransport) SendNullByte() error {
 | 
			
		||||
	ucred := &syscall.Ucred{Pid: int32(os.Getpid()), Uid: uint32(os.Getuid()), Gid: uint32(os.Getgid())}
 | 
			
		||||
	b := syscall.UnixCredentials(ucred)
 | 
			
		||||
	_, oobn, err := t.UnixConn.WriteMsgUnix([]byte{0}, b, nil)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	if oobn != len(b) {
 | 
			
		||||
		return io.ErrShortWrite
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user