Changeset 19 in openpam
- Timestamp:
- 02/02/02 18:04:31 (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
bin/su/su.c (modified) (1 diff)
-
lib/openpam_ttyconv.c (modified) (2 diffs)
-
lib/pam_set_data.c (modified) (1 diff)
-
lib/pam_start.c (modified) (2 diffs)
-
lib/pam_strerror.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/su/su.c
r16 r19 93 93 94 94 /* set some items */ 95 gethostname(hostname, sizeof hostname);95 gethostname(hostname, sizeof(hostname)); 96 96 check("pam_set_item", pam_set_item(pamh, PAM_RHOST, hostname)); 97 97 user = getlogin(); -
trunk/lib/openpam_ttyconv.c
r16 r19 65 65 if (n <= 0 || n > PAM_MAX_NUM_MSG) 66 66 return (PAM_CONV_ERR); 67 if ((*resp = calloc(n, sizeof **resp)) == NULL)67 if ((*resp = calloc(n, sizeof(**resp))) == NULL) 68 68 return (PAM_BUF_ERR); 69 69 fd = fileno(stdin); … … 92 92 fputs(msg[i]->msg, stderr); 93 93 buf[0] = '\0'; 94 fgets(buf, sizeof buf, stdin);94 fgets(buf, sizeof(buf), stdin); 95 95 if (msg[i]->msg_style == PAM_PROMPT_ECHO_OFF) { 96 96 tattr.c_lflag = lflag; -
trunk/lib/pam_set_data.c
r16 r19 72 72 } 73 73 74 if ((dp = malloc(sizeof *dp)) == NULL)74 if ((dp = malloc(sizeof(*dp))) == NULL) 75 75 return (PAM_BUF_ERR); 76 76 if ((dp->name = strdup(module_data_name)) == NULL) { -
trunk/lib/pam_start.c
r16 r19 66 66 int r; 67 67 68 if ((ph = calloc(1, sizeof *ph)) == NULL)68 if ((ph = calloc(1, sizeof(*ph))) == NULL) 69 69 return (PAM_BUF_ERR); 70 70 if ((r = pam_set_item(ph, PAM_SERVICE, service)) != PAM_SUCCESS) … … 111 111 112 112 /* fill in configuration data */ 113 if ((module = malloc(sizeof *module)) == NULL) {113 if ((module = malloc(sizeof(*module))) == NULL) { 114 114 openpam_log(PAM_LOG_ERROR, "malloc(): %m"); 115 115 return (PAM_BUF_ERR); -
trunk/lib/pam_strerror.c
r16 r19 118 118 return ("unknown authentication domain"); 119 119 default: 120 snprintf(unknown, sizeof unknown, "#%d", error_number);120 snprintf(unknown, sizeof(unknown), "#%d", error_number); 121 121 return (unknown); 122 122 }
Note: See TracChangeset
for help on using the changeset viewer.