X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fbio%2Fserv_bio.c;fp=citadel%2Fmodules%2Fbio%2Fserv_bio.c;h=1c03c480546a6927e4e703f40219ea0d5a205faf;hb=4f16550e3fe10c62b691b3976ff8b4fccc9dd830;hp=2436cbfe7b14184e55cd349dd8a89a81c1131781;hpb=41746d2f898e3a111e49d59ff3dfcd9d7e575994;p=citadel.git diff --git a/citadel/modules/bio/serv_bio.c b/citadel/modules/bio/serv_bio.c index 2436cbfe7..1c03c4805 100644 --- a/citadel/modules/bio/serv_bio.c +++ b/citadel/modules/bio/serv_bio.c @@ -2,7 +2,7 @@ * This module implementsserver commands related to the display and * manipulation of user "bio" files. * - * Copyright (c) 1987-2016 by the citadel.org team + * Copyright (c) 1987-2017 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -166,8 +166,7 @@ void import_old_bio_files(void) free(d); return; } - while ((readdir_r(filedir, d, &filedir_entry) == 0) && - (filedir_entry != NULL)) + while ( (filedir_entry = readdir(filedir)) , (filedir_entry != NULL)) { #ifdef _DIRENT_HAVE_D_NAMLEN d_namelen = filedir_entry->d_namlen;