• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/bftpd-1.6.6/

Lines Matching refs:filename

642 	char filename[MAXCMD];  /* single filename */
643 int from_index, to_index; /* position in "filenames" and "filename" */
646 memset(filename, 0, MAXCMD); /* clear filename */
652 /* copy filename until we hit a space */
655 /* got a full filename */
656 command_stor(filename);
657 /* clear filename and reset to_index */
659 memset(filename, 0, MAXCMD);
668 filename[to_index] = filenames[from_index];
671 /* if the next character is a NULL, then this is the end of the filename */
674 command_stor(filename); /* get the file */
675 to_index = 0; /* reset filename index */
676 memset(filename, 0, MAXCMD); /* clear filename buffer */
694 void do_stor(char *filename, int flags)
701 char *mapped = bftpd_cwd_mappath(filename);
735 strerror(errno), filename);
787 strerror(errno), filename);
802 bftpd_log("Not allowed to over-write '%s'.\n", filename);
822 strerror(errno), filename);
842 strerror(errno), filename);
867 bftpd_log("Client is storing file '%s'.\n", filename);
1027 void command_stor(char *filename)
1029 do_stor(filename, O_CREAT | O_WRONLY | O_TRUNC);
1032 void command_appe(char *filename)
1034 do_stor(filename, O_CREAT | O_WRONLY | O_APPEND);
1043 char filename[MAXCMD]; /* single filename */
1044 int from_index, to_index; /* position in "filenames" and "filename" */
1047 memset(filename, 0, MAXCMD); /* clear filename */
1053 /* copy filename until we hit a space */
1056 /* got a full filename */
1057 command_retr(filename);
1058 /* clear filename and reset to_index */
1060 memset(filename, 0, MAXCMD);
1069 filename[to_index] = filenames[from_index];
1072 /* if the next character is a NULL, then this is the end of the filename */
1075 command_retr(filename); /* send the file */
1076 to_index = 0; /* reset filename index */
1077 memset(filename, 0, MAXCMD); /* clear filename buffer */
1093 void command_retr(char *filename)
1120 mapped = bftpd_cwd_mappath(filename);
1132 if (strncmp(filename,"/shares/shares", strlen("/shares/shares")) == 0)
1137 filename += strlen("/shares");
1138 mapped = bftpd_cwd_mappath(filename);
1146 if ((foo = strstr(filename, ".tar.gz")))
1153 if ((foo = strstr(filename, ".tar")))
1160 if ((foo = strstr(filename, ".gz")))
1168 strerror(errno), filename);
1182 my_temp = strstr(filename, ".gz");
1236 "'%s'.\n", filename);
1245 bftpd_log("Client is receiving file '%s'.\n", filename);
1521 bftpd_log("File transmission of '%s' successful.\n", filename);
1581 void command_mdtm(char *filename)
1585 char *fullfilename = bftpd_cwd_mappath(filename);
1591 if (strncmp(filename,"/shares/shares", strlen("/shares/shares")) == 0)
1596 filename += strlen("/shares");
1597 fullfilename = bftpd_cwd_mappath(filename);
1642 void command_dele(char *filename)
1644 char *mapped = bftpd_cwd_mappath(filename);
1669 strerror(errno), filename);
1686 strerror(errno), filename);
1689 bftpd_log("Deleted file '%s'.\n", filename);
1806 void command_size(char *filename)
1809 char *mapped = bftpd_cwd_mappath(filename);
1815 if (strncmp(filename,"/shares/shares", strlen("/shares/shares")) == 0)
1820 filename += strlen("/shares");
1821 mapped = bftpd_cwd_mappath(filename);
1842 void command_stat(char *filename)
1844 char *mapped = bftpd_cwd_mappath(filename);
1845 control_printf(SL_SUCCESS, "213-Status of %s:", filename);
1860 control_printf(SL_FAILURE, "550 Usage: SITE CHMOD <permissions> <filename>");
1894 filename[MAXCMD + 1], *mapped;
1897 control_printf(SL_FAILURE, "550 Usage: SITE CHOWN <owner>[.<group>] <filename>");
1900 sscanf(params, "%[^ ] %s", foo, filename);
1917 mapped = bftpd_cwd_mappath(filename);
1924 bftpd_log("Changed owner of '%s' to UID %i GID %i.\n", filename, uid,