소스 검색

DropPrivs: Add some comments for the more obscure setuid/setgid functions

Git-Dch: ignore
Julian Andres Klode 12 년 전
부모
커밋
48ed0977d2
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      apt-pkg/contrib/fileutl.cc

+ 2 - 0
apt-pkg/contrib/fileutl.cc

@@ -2231,6 +2231,7 @@ bool DropPrivs()
       return _error->Error("Could not switch effective user");
 
 #ifdef HAVE_GETRESUID
+   // verify that the saved set-user-id was changed as well
    uid_t ruid = 0;
    uid_t euid = 0;
    uid_t suid = 0;
@@ -2241,6 +2242,7 @@ bool DropPrivs()
 #endif
 
 #ifdef HAVE_GETRESGID
+   // verify that the saved set-group-id was changed as well
    gid_t rgid = 0;
    gid_t egid = 0;
    gid_t sgid = 0;