📄 get_pauth.c
字号:
/* *//* * Copyright (c) 1989, 1990 by the University of Washington *//* * *//* * For copying and distribution information, please see the file *//* * <copyright.h>. */#include "pmachine.h"#include "pwd.h"#include "pcompat.h"#include "pauthent.h"PAUTHget_pauth(type) int type; { static PAUTH_ST no_auth_st; static PAUTH no_auth = NULL; struct passwd *whoiampw; if(no_auth == NULL) { no_auth = &no_auth_st; strcpy(no_auth->auth_type,"UNAUTHENTICATED"); /* find out who we are */ DISABLE_PFS(whoiampw = getpwuid(getuid())); if (whoiampw == 0) strcpy(no_auth->authenticator,"nobody"); else strcpy(no_auth->authenticator, whoiampw->pw_name); } return(no_auth); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -