diff options
author | jcid <devnull@localhost> | 2007-10-14 02:09:40 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2007-10-14 02:09:40 +0200 |
commit | a7aa9b432ee5cd92b6127608d1355b3861aedbf7 (patch) | |
tree | d2ce2b7cb4508aa350b5e015921cac0cf871cb68 /dpid/dpid.c | |
parent | bfdabcd985d7528d60b4bf0a2000237339e8f3b3 (diff) |
Fixed a problem with locally-installed dpis.
Diffstat (limited to 'dpid/dpid.c')
-rw-r--r-- | dpid/dpid.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dpid/dpid.c b/dpid/dpid.c index 9fe2e74d..1bb918ed 100644 --- a/dpid/dpid.c +++ b/dpid/dpid.c @@ -228,7 +228,7 @@ int get_dpi_attr(char *dpi_dir, char *service, struct dp *dpi_attr) } else if ((dir_stream = opendir(service_dir)) == NULL) { ERRMSG("get_dpi_attr", "opendir", errno); } else { - /* Scan the directory loking for dpi files. + /* Scan the directory looking for dpi files. * (currently there's only the dpi program, but in the future * there may also be helper scripts.) */ while ( (dir_entry = readdir(dir_stream)) != NULL) { @@ -330,7 +330,6 @@ int register_all(struct dp **attlist) { DIR *user_dir_stream, *sys_dir_stream; char *user_dpidir = NULL, *sys_dpidir = NULL, *dpidrc = NULL; - char *basename=NULL; struct dirent *user_dirent, *sys_dirent; int j, st, not_in_user_list; int snum, usr_srv_num; @@ -387,8 +386,7 @@ int register_all(struct dp **attlist) continue; not_in_user_list = 1; for (j = 0; j < usr_srv_num; j++) { - basename = get_basename((*attlist)[j].path); - if (strcmp(sys_dirent->d_name, basename) == 0) { + if (strcmp(sys_dirent->d_name, (*attlist)[j].id) == 0) { not_in_user_list = 0; break; } |