openbsd-ports/sysutils/tentakel/patches/patch-py_lekatnet_remote_py

15 lines
550 B
Plaintext

$OpenBSD: patch-py_lekatnet_remote_py,v 1.1 2004/01/18 14:10:40 wilfried Exp $
--- py/lekatnet/remote.py.orig 2004-01-17 19:50:46.000000000 +0100
+++ py/lekatnet/remote.py 2004-01-18 15:04:44.000000000 +0100
@@ -174,7 +174,9 @@ if __name__ == "__main__":
print "self testing..."
print "### instantiate RemoteCommand:"
- r = RemoteCommand(user="seb", destination="localhost")
+ import pwd, os
+ user = pwd.getpwuid(os.geteuid())[0]
+ r = RemoteCommand(user=user, destination="localhost")
if isinstance(r, RemoteCommand):
print "OK"
else: