"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scponly.h" between
scponly-20110526.tgz and scponly-4.8.tgz

About: scponly is an alternative "shell" of sorts for system administrators who would like to provide access to remote users to both read and write local files without providing any remote execution privileges (a wrapper around "ssh"). Commands like chmod, pwd, chown, etc. are allowed for sftp.

scponly.h  (scponly-20110526.tgz):scponly.h  (scponly-4.8.tgz)
#include <stdio.h> /* FILENAME_MAX */ #include <stdio.h> /* FILENAME_MAX */
#include "config.h" /* include before most other files */ #include <getopt.h> /* struct option */
#include "config.h"
#ifdef HAVE_GETOPT_H
#include <getopt.h> /* for struct option for getopt */
#else
#include "scponly_getopt.h"
#endif
#define MAX_USERNAME 32 #define MAX_USERNAME 32
#define MAX_REQUEST (1024) /* any request exceeding this is truncate d */ #define MAX_REQUEST (1024) /* any request exceeding this is truncate d */
#define MAX_ARGC 100 /* be reasonable */ #define MAX_ARGC 100 /* be reasonable */
#define MAX_ENV 50 /* be reasonable */ #define MAX_ENV 50 /* be reasonable */
#define ALLOWABLE "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012345678 90 ./-*\\_'\":?()=" #define ALLOWABLE "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012345678 90 ./-*\\_'\":?()="
#define WHITE " \t" /* whitespace */ #define WHITE " \t" /* whitespace */
#define exact_match(x,y) (0==strcmp(x,y)) /* we dont want strncpy for this */ #define exact_match(x,y) (0==strcmp(x,y)) /* we dont want strncpy for this */
#define LOGIDENT "scponly" #define LOGIDENT "scponly"
skipping to change at line 46 skipping to change at line 41
int getoptflag; int getoptflag;
int strict; int strict;
char *badarg; char *badarg;
char *opts; char *opts;
struct option *longopts; struct option *longopts;
} cmd_arg_t; } cmd_arg_t;
/* /*
* function prototypes * function prototypes
*/ */
char *strbeg (char *, char *); inline char *strbeg (char *, char *);
char *strend (char *, char *); inline char *strend (char *, char *);
int valid_chars(char *); int valid_chars(char *);
int get_uservar(void); int get_uservar(void);
void show_usage(void); void show_usage(void);
char *logstamp(); char *logstamp();
int cntchr(char *, char); int cntchr(char *, char);
char **build_arg_vector(char *); char **build_arg_vector(char *);
char **expand_wildcards(char **); char **expand_wildcards(char **);
int valid_arg_vector(char **); int valid_arg_vector(char **);
char *substitute_known_path(char *); char *substitute_known_path(char *);
char *flatten_vector(char **); char *flatten_vector(char **);
 End of changes. 2 change blocks. 
9 lines changed or deleted 4 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS