search for: test_flag

Displaying 9 results from an estimated 9 matches for "test_flag".

Did you mean: test_flac
2013 Apr 11
0
[PATCH] skip unreadable files in zypp_rpm_list_files
...rc/supermin_zypp_rpm.ml b/src/supermin_zypp_rpm.ml index 720f50a..1c6243d 100644 --- a/src/supermin_zypp_rpm.ml +++ b/src/supermin_zypp_rpm.ml @@ -175,12 +175,18 @@ let rec zypp_rpm_list_files pkg = let mode = int_of_string mode in let size = int_of_string size in if test_flag 'd' then None (* ignore documentation *) - else + else ( + (* Skip unreadable files when called as non-root *) + if Unix.getuid() > 0 && + (try Unix.access filename [Unix.R_OK]; false with + Unix_er...
2012 May 17
2
New Subsystem criteria for Match option block in OpenSSH server
...exit(1); < } < } --- > if (parse_server_match_testspec(&connection_info, optarg) == -1) > exit(1); 1477c1468 < "command-line", 0, NULL, NULL, NULL, NULL) != 0) --- > "command-line", 0, NULL, NULL) != 0) 1533,1540c1524,1529 < if (test_flag >= 2 && < (test_user != NULL || test_host != NULL || test_addr != NULL) < && (test_user == NULL || test_host == NULL || test_addr == NULL)) < fatal("user, host and addr are all required when testing " < "Match configs"); < if (...
2013 Apr 09
2
[PATCH 1/2] add run_shell helper
The new run_shell helper is a copy of run_python, and will be used by upcoming changes. Signed-off-by: Olaf Hering <olaf at aepfle.de> --- src/supermin_utils.ml | 9 +++++++++ src/supermin_utils.mli | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/src/supermin_utils.ml b/src/supermin_utils.ml index f98e09a..cb8a27e 100644 --- a/src/supermin_utils.ml +++ b/src/supermin_utils.ml
2013 Apr 11
1
[PATCH] remove leading tabs in zypp driver
...ions(+), 3 deletions(-) diff --git a/src/supermin_zypp_rpm.ml b/src/supermin_zypp_rpm.ml index 1c6243d..4247d09 100644 --- a/src/supermin_zypp_rpm.ml +++ b/src/supermin_zypp_rpm.ml @@ -173,7 +173,7 @@ let rec zypp_rpm_list_files pkg = | [filename; flags; mode; size] -> let test_flag = String.contains flags in let mode = int_of_string mode in - let size = int_of_string size in + let size = int_of_string size in if test_flag 'd' then None (* ignore documentation *) else ( (* Skip unreadable files when...
2013 Aug 19
5
[PATCH v2 0/3 supermin] URPMI & xz support.
Joseph, Please try my modified versions of these patches. These are compile-tested on Fedora and they don't break any existing functionality, but I don't have either urpmi nor a statically-linked xz so I cannot fully test them. I have also fixed detection of zlib (2/3). Rich.
2007 Apr 10
6
[PATCH 0/6] openssh V_4_6: minor fixes/cleanups
This patch series consists of minor fixes and cleanups I made during update to openssh V_4_6 branch. openssh/auth-pam.c | 9 ++++----- openssh/auth2.c | 2 -- openssh/readconf.c | 7 ++++--- openssh/servconf.c | 14 ++++++++------ openssh/sftp-server.c | 9 ++++++--- openssh/sshd.c | 2 +- 6 files changed, 23 insertions(+), 20 deletions(-) -- ldv
2005 Feb 24
3
Suggestion: SSHD pseudo/fake mode. Source available.
Hi, SSH brute force attacks seem to enjoy increasing popularity. Call me an optimist or a misrouted kind of contributer to the community, but on our company server I actually go through the logs and report extreme cases to the providers of the originating IP's. With the increasing number of these attacks, however, I have now decided that it's better to move the SSHd to a different
2003 Oct 28
2
Privilege separation
...sep) { struct passwd *pw; struct stat st; @@ -1056,6 +1061,7 @@ fatal("%s must be owned by root and not group or " "world-writable.", _PATH_PRIVSEP_CHROOT_DIR); } +#endif /* DISABLE_PRIVSEP */ /* Configuration looks good, so exit if in test mode. */ if (test_flag) @@ -1468,9 +1474,11 @@ /* prepare buffers to collect authentication messages */ buffer_init(&loginmsg); +#ifndef DISABLE_PRIVSEP if (use_privsep) if ((authctxt = privsep_preauth()) != NULL) goto authenticated; +#endif /* DISABLE_PRIVSEP */ /* perform the key exchange...
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...%{FILEFLAGS:fflags} %%{FILEMODES} %%{FILESIZES}\\n]' -p %s" - pkg in - let lines = run_command_get_lines cmd in - - let files = - filter_map ( - fun line -> - match string_split " " line with - | [filename; flags; mode; size] -> - let test_flag = String.contains flags in - let mode = int_of_string mode in - let size = int_of_string size in - if test_flag 'd' then None (* ignore documentation *) - else - Some (filename, { - ft_dir = mode land 0o40000 <> 0...