scroogie / pdsh

Automatically exported from code.google.com/p/pdsh
0 stars 0 forks source link

when configured with custom dshgroups path - still uses hardcoded #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Configure line:

./configure --prefix=/hpc/local --without-rsh --with-ssh --without-readline 
--with-machines=/hpc/local/etc/pdsh.machines --with-dshgroups=/hpc/local/etc 
--with-nodeupdown --with-rcmd-rank-list=ssh

Run line:

$pdsh -g pdsh.vm uptime
pdsh@boo15: unable to read group file from /home/miked/.dsh/group/pdsh.vm or 
/etc/dsh/group/pdsh.vm
pdsh@boo15: no remote hosts specified
$

Original issue reported on code.google.com by mike.dub...@gmail.com on 9 Aug 2011 at 9:08

GoogleCodeExporter commented 8 years ago
fix is simple
dshgroup.c +129

- snprintf (backupfile, 4096, "/etc/dsh/group/%s", group);
+ snprintf (backupfile, 4096, "%s/%s", DSHGROUP_PATH, group);

Original comment by mike.dub...@gmail.com on 9 Aug 2011 at 9:22

GoogleCodeExporter commented 8 years ago
Yes, that fix looks good. I guess there were good intentions to use 
DSHGROUP_PATH, but it never actually made it into the code.

Thanks!

Original comment by mark.gro...@gmail.com on 9 Aug 2011 at 2:09

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1349.

Original comment by mark.gro...@gmail.com on 12 Aug 2011 at 11:07