Skip to content

Conversation

@arefdsg
Copy link

@arefdsg arefdsg commented Jan 27, 2019

closer

@joedj
Copy link
Owner

joedj commented Jan 27, 2019

Can you please explain this PR a bit better? I've forgotten a lot of this code, but happy to merge in general.

static char result[MAXPATHLEN];
strncpy(result, path, MAXPATHLEN - 1);
result[MAXPATHLEN - 1] = '\0';
static char result[MAXNAMLEN];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why define MAXPATHLEN, and then switch usages to MAXNAMLEN? I haven't actually tried to build this new code...are we still using MAXPATHLEN for other things?


struct stat st;
int fd = fileno(f);
if (fstat(fd, &st)) return;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to remove this? I can't remember, but assume it was probably there for a reason :/

@spotlightishere
Copy link

Hi - I wrote this code in a fork, and after needing a copy of ftpii all this time later found out that it had been PR'd without any notification or contact. This shouldn't work, namely as I just was trying to get the source to compile and gave up later. I've since deleted the fork and I apologize for the confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants