Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 1c210fa6 authored by rswindell's avatar rswindell

Only exports photos for locally created profiles.

parent 48d75f4d
......@@ -125,7 +125,7 @@ int main(int argc, char **argv)
smbmsg_t msg;
FILE *stream;
fprintf(stderr,"\nOUTPHOTO %s - Write SMM photos to SMB - Developed 1995-1997 "
fprintf(stderr,"\nOUTPHOTO %s - Write SMM photos to SMB - Copyright 2002 "
"Rob Swindell\n\n",__DATE__);
if(checktime()) {
......@@ -170,7 +170,7 @@ while(!feof(stream)) {
if(!fread(&user,sizeof(user_t),1,stream))
break;
if(user.misc&USER_DELETED || !(user.misc&USER_PHOTO))
if(user.misc&(USER_DELETED|USER_FROMSMB) || !(user.misc&USER_PHOTO))
continue;
printf("Photo: %-25.25s %.24s "
......@@ -291,7 +291,7 @@ while(!feof(stream)) {
memset(&msg,0,sizeof(smbmsg_t));
memcpy(msg.hdr.id,"SHD\x1a",4);
msg.hdr.version=SMB_VERSION;
msg.hdr.version=smb_ver();
msg.hdr.when_written.time=time(NULL);
msg.hdr.offset=offset;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment