[Adduser-devel] dummy variables vs. undef

Frederik Schwarzer schwarzerf at gmail.com
Tue Apr 8 17:46:51 UTC 2008


in the adduser script dummy variables are used in line 705/706 (sub 
existing_user_ok) and 734/735 (sub existing_group_ok).
You can use the keyword undef for that.

- my ($dummy1,$dummy2,$uid);
- if (($dummy1,$dummy2,$uid) = getpwnam($new_name)) {
+ my ($uid);
+  if ((undef,undef,$uid) = getpwnam($new_name)) {

P.S.: You have a spam problem on your mailing list. :(

More information about the Adduser-devel mailing list