[GE dev] sge_aliases search behaviour

ecs_vuw_kevin Kevin.Buckley at ecs.vuw.ac.nz
Wed Dec 16 01:26:18 GMT 2009


OK, here's what I think is "wrong":

In 

libs/sgeobj/sge_path_alias.c

in the following block, the filename has 
been constructed by examining the passwd
file and appending PATH_ALIAS_HOME_FILE to
the pwd-pw_dir value found there

   if ((SGE_STAT(file_name, &sb) != 0) && (errno == ENOENT)) {
      DEXIT;
      return 0;
   }   

yet this "search" is "happy" to return 0 
and allow the program to continue if the 
file does not exist.

My question to the dev community would thus
be, why is there no way to either tell SGE
not to look at a user's .sge_aliases file
or not to worry if it is not there for any reason?

Better still might be to make the whole
path to the user's sge_aliases file 
configurable rather than just the name
with the HOME directory.

libs/sgeobj/sge_path_alias.h:#define PATH_ALIAS_HOME_FILE      ".sge_aliases"

libs/sgeobj/sge_path_alias.c:      sprintf(filename[1], "%s/%s", pwd->pw_dir, PATH_ALIAS_HOME_FILE);

Interested to hear of thoughts on this,

Kevin M. Buckley

e-Research Programmer
School of Engineering and Computer Science
Victoria University of Wellington
New Zealand

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=39&dsMessageId=233615

To unsubscribe from this discussion, e-mail: [dev-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list