From 273b9dc1218f115830d30aaa7d8b7478ce4fc6bf Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Thu, 2 Mar 2000 00:59:58 +0000 Subject: [PATCH] add some comments / todo items. not part of the build. git-svn-id: svn://10.0.0.236/trunk@62010 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/appshell/src/nsUserInfoUnix.cpp | 3 +++ mozilla/xpfe/components/startup/src/nsUserInfoUnix.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/mozilla/xpfe/appshell/src/nsUserInfoUnix.cpp b/mozilla/xpfe/appshell/src/nsUserInfoUnix.cpp index 1ada60670d6..1a7208c8728 100644 --- a/mozilla/xpfe/appshell/src/nsUserInfoUnix.cpp +++ b/mozilla/xpfe/appshell/src/nsUserInfoUnix.cpp @@ -73,6 +73,7 @@ nsUserInfo::GetUsername(char * *aUsername) { struct passwd *pw = nsnull; + // is this portable? those are POSIX compliant calls, but I need to check pw = getpwuid(geteuid()); // do I need to free pw? @@ -96,10 +97,12 @@ nsUserInfo::GetDomain(char * *aDomain) struct utsname buf; char *domainname = nsnull; + // is this portable? that is a POSIX compliant call, but I need to check if (uname(&buf)) { return rv; } + // I need to see why on linux it is __domainname, yet for the header file, it is domainname #if 1 domainname = buf.__domainname; #else diff --git a/mozilla/xpfe/components/startup/src/nsUserInfoUnix.cpp b/mozilla/xpfe/components/startup/src/nsUserInfoUnix.cpp index 1ada60670d6..1a7208c8728 100644 --- a/mozilla/xpfe/components/startup/src/nsUserInfoUnix.cpp +++ b/mozilla/xpfe/components/startup/src/nsUserInfoUnix.cpp @@ -73,6 +73,7 @@ nsUserInfo::GetUsername(char * *aUsername) { struct passwd *pw = nsnull; + // is this portable? those are POSIX compliant calls, but I need to check pw = getpwuid(geteuid()); // do I need to free pw? @@ -96,10 +97,12 @@ nsUserInfo::GetDomain(char * *aDomain) struct utsname buf; char *domainname = nsnull; + // is this portable? that is a POSIX compliant call, but I need to check if (uname(&buf)) { return rv; } + // I need to see why on linux it is __domainname, yet for the header file, it is domainname #if 1 domainname = buf.__domainname; #else