Changeset a7b125d for zcrypt.c


Ignore:
Timestamp:
Jul 12, 2011, 12:26:24 PM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Children:
8f5afcf
Parents:
06af663
git-author:
David Benjamin <davidben@mit.edu> (07/12/11 12:04:49)
git-committer:
David Benjamin <davidben@mit.edu> (07/12/11 12:26:24)
Message:
Compute the home directory in zcrypt as in owl_global

While I'm here, may as well be consistent and fall back to passwd
entries as appropriate.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zcrypt.c

    r06af663 ra7b125d  
    411411  int length[MAX_SEARCH], i;
    412412  char buffer[MAX_BUFF];
     413  const char *home;
    413414  char *filename;
    414415  char result[MAX_SEARCH][MAX_BUFF];
     
    433434
    434435  /* Open~/.crypt-table */
     436  home = getenv("HOME");
     437  if (home == NULL)
     438    home = g_get_home_dir();
    435439  filename = g_build_filename(home, ".crypt-table", NULL);
    436440  fsearch = fopen(filename, "r");
Note: See TracChangeset for help on using the changeset viewer.