1 # display args for pam_shells.so.pl
3 # display_args(&service, &module, &args)
4 sub display_module_args
6 local $file = "/etc/shells";
7 print &ui_table_row($text{'shells_shells'},
8 &ui_textarea("shells", &read_file_contents($file), 5, 40), 3);
11 # parse_module_args(&service, &module, &args)
14 local $file = "/etc/shells";
16 &open_tempfile(FILE, ">$file");
17 $in{'shells'} =~ s/\r//g;
18 $in{'shells'} =~ s/\s*$/\n/;
19 &print_tempfile(FILE, $in{'shells'});
20 &close_tempfile(FILE);