Commit 8d474a41 authored by Guido van Rossum's avatar Guido van Rossum

Add explicit auth object

parent a129fc2e
......@@ -3,6 +3,7 @@
# (See mountclient.py for some hints on how to write RPC clients in
# Python in general)
import rpc
from rpc import UDPClient, TCPClient
from mountclient import FHSIZE, MountPacker, MountUnpacker
......@@ -124,6 +125,11 @@ class NFSClient(UDPClient):
self.packer = NFSPacker().init()
self.unpacker = NFSUnpacker().init('')
def mkcred(self, proc):
if self.cred == None:
self.cred = rpc.AUTH_UNIX, rpc.make_auth_unix_default()
return self.cred
def Getattr(self, fh):
self.start_call(1)
self.packer.pack_fhandle(fh)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment