Re: [PATCH] modprobe: implement -d DIR flag like the modprobe in kmod

2024-04-25 Thread tito
On Thu, 25 Apr 2024 09:13:09 +0200 tito wrote: > On Wed, 24 Apr 2024 21:22:28 -0700 > Adam Joseph wrote: > > > This patch implements support for the `-d DIR` flag, like kmod has. When > > provided, `DIR` is a directory *beneath which* modprob

Re: [PATCH] modprobe: implement -d DIR flag like the modprobe in kmod

2024-04-25 Thread tito
e; > > INIT_G(); > > opt = getopt32long(argv, "^" INSMOD_OPTS MODPROBE_OPTS "\0" > MODPROBE_COMPLEMENTARY, > modprobe_longopts > INSMOD_ARGS > + , > ); >

Re: Missing binaries / build system

2024-04-19 Thread tito
that > non-interactively. Hi, you can just copy the .config file to the build directory. This will work as long as there are no new config options. Ciao, Tito > -- Jeff > ___ > busybox mailing list > busybox@busybox.net > http://lists.busybox

Re: [PATCH 1/1] login: add support for shadow passwords

2023-09-13 Thread tito
pw->pw_passwd = result->sp_pwdp; > + } > +#endif > + > if (pw->pw_passwd[0] == '!' || pw->pw_passwd[0] == '*') > goto auth_failed; > Hi, I wonder if this could be fixed for all applets that

Re: Proposal for a new applet: strings

2023-07-23 Thread tito
On Sun, 23 Jul 2023 16:17:54 +0200 "Roberto A. Foglietta" wrote: > On Sun, 23 Jul 2023 at 13:18, tito wrote: > > > > On Sun, 23 Jul 2023 12:00:56 +0200 > > "Roberto A. Foglietta" wrote: > > > > > > > > > 1) m

Re: Proposal for a new applet: strings

2023-07-23 Thread tito
On Sun, 23 Jul 2023 12:00:56 +0200 "Roberto A. Foglietta" wrote: > On Sun, 23 Jul 2023 at 11:42, tito wrote: > > > > On Sun, 23 Jul 2023 00:36:09 +0200 > > "Roberto A. Foglietta" wrote: > > > > > On Sat, 22 Jul 2023 at 21:29, tito w

Re: Proposal for a new applet: strings

2023-07-23 Thread tito
On Sun, 23 Jul 2023 00:36:09 +0200 "Roberto A. Foglietta" wrote: > On Sat, 22 Jul 2023 at 21:29, tito wrote: > > > > On Sat, 22 Jul 2023 19:31:28 +0200 > > "Roberto A. Foglietta" wrote: > > > > > On Sat, 22 Jul 2023 at 1

Re: Proposal for a new applet: strings

2023-07-22 Thread tito
On Sat, 22 Jul 2023 19:31:28 +0200 "Roberto A. Foglietta" wrote: > On Sat, 22 Jul 2023 at 15:40, tito wrote: > > > Hi, > > > > I'm not the maintainer so I can say nothing about integration, > > I can just point out things that look strange to me and my

Re: Proposal for a new applet: strings

2023-07-22 Thread tito
On Sat, 22 Jul 2023 13:35:56 +0200 "Roberto A. Foglietta" wrote: > On Sat, 22 Jul 2023 at 08:02, tito wrote: > > > > Hi, > > I just adopted the test in the PERFORMANCE section of your

Re: Proposal for a new applet: strings

2023-07-22 Thread tito
On Sat, 22 Jul 2023 03:36:52 +0200 "Roberto A. Foglietta" wrote: > On Fri, 21 Jul 2023 at 22:37, tito wrote: > > > > On Fri, 21 Jul 2023 21:39:57 +0200 > > "Roberto A. Foglietta" wrote: > > > > > To the maintainers and everyone else who

Re: Proposal for a new applet: strings

2023-07-21 Thread tito
t at least comparable > with the original from binutils. > > Best regards, R- Hi, seems to me that the current strings busybox implementation is faster. tito@devuan:~/Desktop$ time ./strings vmlinux.o > out.txt real0m0.369s user0m0.365s sys 0m0.004s tito@devuan:~/Desktop$

Re: [PATCH] libbb: in xmalloc_fgetline, use getline if enabled

2023-05-28 Thread tito
file(file, n); > +#endif > + > + if (*n) { > + if (c[*n - 1] == '\n') { > + c[--*n] = '\0'; > + } > + } > > return c; > } > diff --git a/testsuite/cut.tests b/testsuite/cut.tests > index 2458c019c..0fd73168

Re: [PATCH v5] readlink: more size optimization

2023-04-25 Thread tito
opt) fputs(buf, stdout); else puts(buf); > > > #elif defined(T2) > > > printf("%s%s", buf, "\n" + (opt & 1)); > > > > Of the four tests, T2 is the only one with correct semantics. > > > > > #elif defined(T3) > > > p

Re: [PATCH v2] readlink: slight size optimization

2023-04-17 Thread tito
On Mon, 17 Apr 2023 17:23:04 -0500 Eric Blake wrote: > On Mon, Apr 17, 2023 at 11:21:21PM +0200, tito wrote: > > On Mon, 17 Apr 2023 14:15:40 -0500 > > Eric Blake wrote: > > > > > Exploit the value of the flag for -n to reduce the size of >

Re: [PATCH v2] readlink: slight size optimization

2023-04-17 Thread tito
my limited C skills I didn't understand how "\n"[opt & 1] works, so I applied your patch and compiled it, but it seems to me that something is wrong: Prepare a link for testing: tito@devuan:~/Desktop/SourceCode/busybox_new$ ln -s busybox prova Busybox with your patch applied: $

Re: [PATCH] Fix failure to remove an empty directory without read permission

2023-02-01 Thread tito
dard error and read a line from the standard input. If the response is not affirmative, rm shall do nothing more with the current file and go on to any remaining files. so my question is: does your patch remove the dir only with -rf options or with all option combinations? Ciao, Tito > > rm in

Re: The busybox website is unbearably slow

2023-01-18 Thread tito
-- > > Bye, Peter Korsgaard > > ___ > > busybox mailing list > > busybox@busybox.net > > http://lists.busybox.net/mailman/listinfo/busybox > > > ++ > Michael D. Setzer II - Computer Science Instructor > (Retired) > mailto:mi...@guam.net > mailto:msetze...@gmail.com > Guam - Where America's Day Begins > G4L Disk Imaging Project maintainer > http://sourceforge.net/projects/g4l/ > ++ > > > > ___ > busybox mailing list > busybox@busybox.net > http://lists.busybox.net/mailman/listinfo/busybox Hi, seems to work now. Name registration was updated Registrar Registration Expiration Date: 2024-01-17T23:59:59Z Ciao, Tito ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: The busybox website is unbearably slow

2023-01-18 Thread tito
it sticks in "performing TLS handshake"), but > > now tried with wget and it connects and waits too. > > I've restarted Apache on the VM, which seems to have improved things > somewhat. > Hi, not really improved: The connectio

Re: [PATCH] adduser: Make home directory not world readable

2023-01-17 Thread tito
if the maintainer likes this solution, let's see if there is some reaction. Ciao, Tito > ___ > busybox mailing list > busybox@busybox.net > http://lists.busybox.net/mailman/listinfo/busybox _

Re: [PATCH] adduser: Make home directory not world readable

2023-01-17 Thread tito
bb_simple_perror_msg(pw.pw_dir); > } Hi, this is the default in debian as could be seen in /etc/adduser.conf: # If DIR_MODE is set, directories will be created with the specified # mode. Otherwise the default mode 0755 will be used. DIR_MO

Re: [PATCH 0/1] Make same named group deletion configurable

2022-11-14 Thread tito
roup won't be removed if it has any members left. So it seems to me that the default is to remove a group even if there are still users in it. It should not be difficult to add the --only-if-empy option, check for gr->mem != NULL and exit with an error. Ciao, Tito _

Re: [PATCH] Fix non-Linux builds

2022-10-16 Thread tito
On Sun, 16 Oct 2022 15:44:23 +0200 Samuel Thibault wrote: > tito, le dim. 16 oct. 2022 09:26:27 +0200, a ecrit: > > On Sun, 16 Oct 2022 02:04:59 +0200 > > Samuel Thibault wrote: > > > > > Various tools are Linuxish and should thus only attempted to build on &

Re: [PATCH] Fix non-Linux builds

2022-10-16 Thread tito
pplets that are not relevant for your platform? I think this would reduce the size of the patch to the #ifdef O_DIRECT part which could be moved for example to include/platform.h. Busybox " is also extremely modular so you can easily include or exclude commands (or features) at compile time. &q

Re: [PATCH] shell: fix $(()) precedence bug in "X=A?B:C" (it is _not_ "(X=A)?..)"

2022-09-05 Thread tito
On Mon, 05 Sep 2022 16:58:07 +0200 Steffen Nurpmeso wrote: > Steffen Nurpmeso wrote in > <20220905143118.ysd0g%stef...@sdaoden.eu>: Man, you have a lot of energy for writing, rediffing your patch series would have done it. Ciao, Tito ___

Re: [PATCH v4] tree: new applet

2022-05-01 Thread tito
_CHILD "|_ " #define PREFIX_GRAND_CHILD "| " #define PREFIX_LAST_GRAND_CHILD " " #else #define PREFIX_CHILD "├── " #define PREFIX_LAST_CHILD "└── " #define PREFIX_GRAND_CHILD "│   " #define PREFIX_LAST_GRAND_CHILD "" #endif Ci

Re: [PATCH v4] tree: new applet

2022-05-01 Thread tito
; + } else { > + child_directory.prefix = > PREFIX_LAST_GRAND_CHILD; > + fputs_stdout(PREFIX_LAST_CHILD); > + } > + Less lines maybe less size (untested) if (is_direct

Re: [PATCH v9] seedrng: import SeedRNG utility for kernel RNG seed files

2022-05-01 Thread tito
e sure disk is not full, quota was't esceeded, etc: +* genuine entropy: make sure disk is not full, quota was't exceeded, etc: Ciao, Tito ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: [PATCH v3] Added miscutil/tree.c

2022-04-25 Thread tito
On Mon, 25 Apr 2022 16:56:50 + rkne...@pm.me wrote: > Hi Tito, > > Thanks again for your valuable feedback for V2. I fixed your remarks in V3. > Could you please have a look at V3? > > If you are ok with the changes I would like to ask you for a sign-off so that > w

Re: [PATCH v2] Added miscutil/tree.c

2022-04-18 Thread tito
sorting algorithm the output of complex trees > > is somewhat different in the ordering of files > > ( for example uppercase , lowercase) > > as the real tree program. > Feel free to provide the sorting function. I will include it in the patch. Hi, it is rather complex and big in size

Re: [PATCH v2] Added miscutil/tree.c

2022-04-17 Thread tito
On Sat, 16 Apr 2022 21:13:02 +0200 tito wrote: > On Sat, 16 Apr 2022 16:54:19 + > Roger Knecht wrote: > > > Adds the tree program to list directories and files in a tree structure. > > > > function old new

Re: [PATCH v2] Added miscutil/tree.c

2022-04-16 Thread tito
ot;, dircount, filecount); if (ENABLE_FEATURE_CLEAN_UP) { free(list); } return EXIT_SUCCESS; } Hints on how to shrink it even more, improvements and critics are welcome! Enjoy. Ciao, Tito Busybox version of tree, lists contents of directories in a tr

Re: [PATCH] tsort: new applet

2022-02-20 Thread tito
> create mode 100755 testsuite/tsort.tests Hi, some minor fixes inline. Ciao, Tito >From d398d3dbfd8d1356137d574fd168a61cf58898c2 Mon Sep 17 00:00:00 2001 From: David Leonard Date: Sun, 20 Feb 2022 14:29:45 +1000 Subject: [PATCH] tsort: new applet function

Re: Tar component in busybox version 1.34.1 has a memory leak bug when trying to unpack a tar file.

2021-12-01 Thread tito
ing out of memory, and in > the process of running out of memory, may invoke the OOM killer in the > process, which might kill some other process. > > Ariadne Hi, // Die if we can't allocate size bytes of memory. void* FAST_FUNC xmalloc(size_t size) { void *ptr =

which -a

2021-10-26 Thread tito
Hi, today I noticed that the which command doesn't show the -a command line option in its usage. Ciao, Tito ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: busybox Digest, Vol 193, Issue 42

2021-08-28 Thread tito
KPASSWD=y CONFIG_PASSWD=y CONFIG_FEATURE_PASSWD_WEAK_CHECK=y Ciao, Tito > On Fri, Aug 27, 2021 at 8:00 AM wrote: > > > Send busybox mailing list submissions to > > busybox@busybox.net > > > > To subscribe or unsubscribe via the World Wide Web, visit > > http://lists

Re: Login uid 0 unknown

2021-08-26 Thread tito
, isn't your passwd entry malformed as root's home dir entry is missing? root: :0:0:root:? :/bin/sh root:x:0:0:root:/root:/bin/bash Just my 2 cents, Ciao, Tito > for my busybox build) and root is root:x:0 for groups. I used make > defconfig to build from. My kernel version is 5.

Re: shell function name length, question

2021-08-14 Thread tito
s > it is safe, AFAIK. > > Reporting only the first 256 characters of the function name seems also to > me enough. Hi, what happens if two functions have a 257 char long name that differ only in the last char? Why don't make the names as long as

Re: switch_root and /etc/inittab

2021-06-17 Thread tito
wonder why you don'y use /bin/busybox switch_root -c /dev/console /mnt /sbin/init is sbin in $PATH? does sbin exist? is there a link in sbin named switch_root pointing to /bin/busybox? Just my 2 cents. P.S.: You should not top-post. Ciao, Tito > /bin/busybox echo "Switched root&q

Re: [PATCH] run-parts: permit dot in file name

2021-05-13 Thread tito
also hidden files (files starting with a dot) are valid names and I suspect this is not acceptable. Maybe something like: p = c = bb_basename(c); while (*c && (isalnum(*c) || *c == '_' || *c == '-' || (*c =='.' && c != p))) c++; or

Re: [PATCH v2] watchdog: make open-write-close-open functionality a config knob

2021-03-26 Thread tito
the behaviour is easily emulated with a "printf 'V' > > /dev/watchdog" +//config: immediately before starting the > > busybox watchdog daemnn. Say n unless +//config:you know Hi, typo here: +//config: immediately before starting the busybox watchdog __daemnn___.

Re: [PATCH 1/2] libbb: add xopen_fd() helper

2021-03-02 Thread tito
C xopen(const char *pathname, int > > flags) return xopen3(pathname, flags, 0666); > > } > > > > +// Die if we can't open a file as a given fd. > > +void FAST_FUNC xopen_fd(const char *pathname, int flags, int fd) > > +{ > > + return xmove_fd(xopen(pathna

Re: Logging of unsuccessful login attempts

2020-11-18 Thread tito
eeps current behavior? if (++count == CONFIG_MAX_LOGIN_ATTEMPTS) { Just my 2 cents. Ciao, Tito > username, fromhost); if (++count == 3) { > - syslog(LOG_WARNING, "invalid password for > '%s'%s", > + syslog(LOG_WARNING, &qu

Re: [PATCH] shrink last_char_is function even more

2020-09-02 Thread Tito
Il 02/09/20 14:23, dietmar.schind...@manrolandgoss.com ha scritto: >> -Original Message- >> From: busybox On Behalf Of Tito >> Sent: Monday, July 20, 2020 1:58 PM >> To: busybox@busybox.net >> >> … >> I for myself decided for being defensive and t

Re: [PATCH] shrink last_char_is function even more

2020-07-20 Thread Tito
off for my little personal codebase. I save you from showing examples of my defensive coding that I'm sure would horrify most of the list members ;-) Ciao, Tito >  Checking for NULL "just in case" is defensive programming, which is > very bad. It means the programmer does

Re: [PATCH] shrink last_char_is function even more

2020-07-19 Thread Tito
On 7/19/20 8:48 PM, Denys Vlasenko wrote: > On Tue, Jul 7, 2020 at 9:17 PM Tito wrote: >> Hi, >> attached you will find a patch that shrinks libbb's last_char_is function. >> bloatcheck is: >> >> function ol

Re: [PATCH] shrink last_char_is function even more

2020-07-12 Thread Tito
On 7/9/20 9:13 PM, Tito wrote: > On 7/9/20 9:56 PM, Martin Lewis wrote: >> Please note that my original patch is still smaller: >> http://lists.busybox.net/pipermail/busybox/2020-June/088026.html > > Hi, > yes I know. This is smaller than what is in git now. > I und

Re: [PATCH] shrink last_char_is function even more

2020-07-09 Thread Tito
tring twice, unnecessarily. Let's not do that." Can't say If he will like mine. > I'm not sure whether it's faster, it would be interesting to compare them. Can you suggest how could this be achieved? a test program? Ciao, Tito > On Tue, 7 Jul 2020 at 14:17, Tito <mailto:far

[PATCH] shrink last_char_is function even more

2020-07-07 Thread Tito
-- (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-7) Total: -7 bytes Ciao, Tito P.S.: test program, if you are aware of other corner cases please tell me: char* last_char_is(const char *s, int c) { if (!s

Re: [PATCH] libbb/last_char_is: rewrite for smaller and faster code

2020-07-03 Thread Tito
On 7/3/20 6:13 PM, Xabier Oneca -- xOneca wrote: > Hi all, > >>> On Fri, 2020-07-03 at 08:12 +0200, Tito wrote: >>> [...] >>>> Improved version: >>>> >>>> char* last_char_is(const char *s, int c) { >>>> if (!s || !*

Re: [PATCH] libbb/last_char_is: rewrite for smaller and faster code

2020-07-03 Thread Tito
On 7/3/20 4:58 AM, Jody Bruchon wrote: > > > On July 2, 2020 3:26:29 PM EDT, Tito wrote: >> hi, >> just for fun I add my version: >> >> char* FAST_FUNC last_char_is(const char *s, int c) { >> while (s && *s && *(s + 1)) s++; >&g

Re: [PATCH] libbb/last_char_is: rewrite for smaller and faster code

2020-07-02 Thread Tito
Total: -6 bytes textdata bss dec hex filename 980860 168911872 999623 f40c7 busybox_old 980854 168911872 999617 f40c1 busybox_unstripped Ciao, Tito ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: Nuke

2020-06-20 Thread Tito
r '..'"); continue; } #endif remove_file(*argv, FILEUTILS_FORCE | FILEUTILS_RECUR); } // klibc-utils do not indicate errors return EXIT_SUCCESS; } I think that unless you specify some args on the commandline nothing will be nuked. Ciao,

Re: [PATCH] deluser: check if specified home is a directory before removing it

2020-06-09 Thread Tito
't stat '%s'", > pw->pw_dir); Hi, use xstat(pw->pw_dir, ); > + if (S_ISDIR(st.st_mode)) > + remove_file(pw->pw_dir,

Re: How to use function lbb_main of the libbusybox.so to a C program

2020-05-17 Thread Tito
's /on/an/g;s/$/in/' | rev sed: -e expression #1, char 18: unterminated `s' command > ninalemretaw > nianlem > > If possible, you could generating the C equivalent of the commands mentioned > above, > using the lbb_main function, of the libbusybox.so librar

Re: How to rebuild only changed files?

2020-04-22 Thread Tito
On 4/22/20 11:55 PM, Wolf wrote: > On 2020-04-22 21:35:24 +0200, Tito wrote: >> out of curiosity what are the mount options of your building directory? > > I'm building in ~/devel/busybox, which is directly on root partition (I > do not have separate /home): >

Re: How to rebuild only changed files?

2020-04-22 Thread Tito
On 4/22/20 5:00 PM, Tito wrote: > > > On 4/22/20 4:17 PM, Wolf wrote: >> Hello, >> >> I would like to ask about some tips for developing the busybox. >> Currently I just >> >> make defconfig >> make -j8 >> >> which seems to

Re: How to rebuild only changed files?

2020-04-22 Thread Tito
target for the make? Or busybox's > makefile does not support incremental build like this? > > > > Thank you for your time, > W. > > Hi, just do: make -j8 Ciao, Tito signature.asc Description: OpenPGP digital signature

Re: tc command not working as expected

2020-04-21 Thread Tito
On 4/21/20 11:18 PM, Tom Lee wrote: > `tc: command line is not complete, try "help"` Hi, at a fast glance I cannot find this error message in bb's code, are you sure you are running the busybox binary you think? Ciao, Tito ___ busybox

Re: git smart http for busybox repo

2020-04-13 Thread Tito
t git is git pull to update my local tree. Just my 0,2 cents Ciao, Tito ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: [PATCH] bug #10981: adduser -D behavior

2020-02-12 Thread Tito
if shadow password support was enabled. At that time size did matter and If I recall correctly bb didn't support long options yet but debian's adduser only had long options therefore the options were chosen arbitrarily by the developers and stayed like that for the last 17 years. Hope thi

Re: Possible DoS in whois (1.31), caused by memory exhaustion

2019-12-02 Thread Tito
), assumes the each response from server should be treated as a complete entry (i.e. not fragmented) and thus avoids using realloc. Regards, Erez On Mon, Dec 2, 2019 at 2:59 PM Tito mailto:farmat...@tiscali.it>> wrote: On 12/2/19 4:54 PM, Erez Turjeman wrote: > The imple

Re: Possible DoS in whois (1.31), caused by memory exhaustion

2019-12-02 Thread Tito
size_t size) { ptr = realloc(ptr, size); if (ptr == NULL && size != 0) bb_die_memory_exhausted(); return ptr; } Ciao, Tito ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: adduser -D creates a locked account instead of a passwordless account

2019-11-07 Thread Tito
"skel\0"Required_argument "k" so while the help text -D Do not assign a password is somewhat misleading and could eventually be fixed the behavior of the applet seems acceptable to me except for the use of SSH RSA which I doubt being supported by busybox. Just my 0.2 cents. Ciao, Tito ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: [PATCH] udhcpc: fix segmentation fault on empty bin opt

2019-09-25 Thread Tito
se to put this in libbb/trim.c so it is fixed definitely? ciao, Tito ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: chmod issue

2019-06-14 Thread Tito
Ciao, Tito ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: [PATCH v3] i2c_tools.c: add i2ctransfer utility

2019-01-07 Thread Tito
Hi, some hints to further reduce size and increase busyboxification. Ciao, Tito On 07/01/19 14:29, Nikolaus Voss wrote: i2ctransfer sends and receives user defined i2c messages v2: apply Xabier's comments: add -a option, don't decrement argc, use bb_show_usage() and xzalloc() v3: fix

Re: [v2] jdupes 1.11.1 port to BusyBox

2018-12-19 Thread Tito
_error_msg, getopt32 nor any other libbb function, do you plan to use them? Ciao, Tito ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: bug in LINENO in busybox 1.29.3

2018-11-28 Thread Tito
=" instead of "5 TEST=" Dagg. Hi, with bash version 4.4.12(1)-release (x86_64-pc-linux-gnu) it prints: ./test.sh 5 TEST= so it seems not to be a bug. Why do you think it is wrong? 1 #!/bin/bash 2 3 TEST="" 4 # co

Re: [PATCH] Add a 'busybox --list name' option to display script content Re: License concerns when embedding script in busybox binary

2018-11-09 Thread Tito
Hi, I'am speechless... but we still need an option to colorize the output ;-) Ciao, Tito On 09/11/18 19:10, Ron Yorston wrote: Add an option to allow the content of embedded scripts to be displayed. It's disabled by default. When enabled: function

Re: [RFC PATCH v2] Allow applets to be implemented as scripts

2018-11-07 Thread Tito
e embedded in the binary as they do add non standard stuff to bb. Luckily I'm not the maintainer and I don't need to decide what goes in and what not. I hope that this can contribute to the discussion. Best regards and keep up the good work.

Re: [PATCH] passwd ENABLE_FEATURE_PASSWD_WEAK_CHECK and weak password but still allowed to change passwd.

2018-08-09 Thread Tito
is mandatory for them. Ciao, Tito it shouldn't matter who the user is as long as the feature is enabled the password shouldn't be week. Thanks Haroon ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: [PATCH] addgroup , adduser series.

2018-08-06 Thread Tito
*From:* busybox on behalf of Tito *Sent:* Sunday, August 5, 2018 6:45 PM *To:* busybox@busybox.net *Subject:* Re: [PATCH] addgroup , adduser series. On 05/08/2018 10:51, haroon maqsood wrote: Hi I started working on a patch

Re: [PATCH] addgroup , adduser series.

2018-08-05 Thread Tito
/group names in adduser and adgroup (6) Last valid uid or gid for adduser and addgroup (100) First valid system uid or gid for adduser and addgroup (999) Last valid system uid or gid for adduser and addgroup Ciao, Tito let me know what you think. Haroon

Re: init missing SIGTERM from `reboot` called from init script

2018-06-13 Thread Tito
could be to run reboot in a loop until init is ready to catch the signal. Just my .2 cents. Ciao, Tito ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: Switching Fedora machine away from systemd

2018-04-20 Thread Tito
system. It will make your life >> a lot simpler. > > But this will not allow me to have a webpage with a public description > how I eradicated canc^W systemd - and survived, no probs. > That would be so much less fun. Yes a lot of fun and a lot to learn. Could it be done? You'll not

Re: add bb_info_msg was Re: Applets send errors to syslog during normal, successful operation

2018-03-11 Thread Tito
ld new delta bb_info_msg- 171+171 -- (add/remove: 1/0 grow/shrink: 0/0 up/down: 171/0) Total: 171 bytes Deweloper's patch is smaller in code size a

Re: add bb_info_msg was Re: Applets send errors to syslog during normal, successful operation

2018-03-06 Thread Tito
. BTW with my proposed patch there is only one assignment in the libbb call and the changes needed in code are minimal, so I would be curious what the impact is in size by changing all the bb_error_msg calls proposed by Deweloper's patch. Deweloper could you post your .config? Ciao, Tito

Re: [RESEND PATCH] add bb_info_msg was Re: Applets send errors to syslog during normal, successful operation

2018-03-04 Thread Tito
On 04/03/2018 20:05, Denys Vlasenko wrote: On Wed, Feb 28, 2018 at 2:03 PM, Tito <farmat...@tiscali.it> wrote: Hi, forgot to add the [PATCH] tag so I resend it. Ciao, Tito On 04/02/2018 19:53, Denys Vlasenko wrote: On Thu, Nov 30, 2017 at 9:51 PM, Tito <farmat...@tiscali.

Re: [RESEND PATCH] add bb_info_msg was Re: Applets send errors to syslog during normal, successful operation

2018-02-28 Thread Tito
On 28/02/2018 18:27, Deweloper wrote: On Wed, 28 Feb 2018 14:03:46 +0100 Tito <farmat...@tiscali.it> wrote: Hi, forgot to add the [PATCH] tag so I resend it. Ciao, Tito On 04/02/2018 19:53, Denys Vlasenko wrote: On Thu, Nov 30, 2017 at 9:51 PM, Tito <farmat...@tiscali.it> w

Re: Applets send errors to syslog during normal, successful operation

2018-02-04 Thread Tito
On 04/02/2018 19:53, Denys Vlasenko wrote: > On Thu, Nov 30, 2017 at 9:51 PM, Tito <farmat...@tiscali.it> wrote: >> On 11/30/2017 08:26 PM, Deweloper wrote: >>> Many applets are daemons (or can be run as daemons) and send messages to >>> syslog. The problem is that

Re: BusyBox built-in shell (ash)

2017-12-12 Thread Tito
/makedev.html I would add: mount -t devtmpfs none /dev or If your kernel supports the devfs file system, run the following command to mount devfs: mount -t devfs devfs /dev mkdir /dev/pts mount devpts /dev/pts -t devpts Hope this helps, Ciao, Tito # pwd / # cat /proc/mounts rootfs / rootfs rw 0 0

Re: BusyBox built-in shell (ash)

2017-12-01 Thread Tito
On 12/01/2017 04:17 PM, A.W.C. wrote: But I already have directories /dev, /proc, /sys, /tmp If I'll make these new dir for TinyCross they will replace existing ones? mkdir -p /proc mkdir -p /sys mkdir -p /tmp mkdir -p /var/log -p, --parents no error if existing, make parent

Re: Applets send errors to syslog during normal, successful operation

2017-11-30 Thread Tito
ould be so smart to see that this is the same as bb_error_msg when ENABLE_FEATURE_SYSLOG is not set and optimize it out. This code is untested. Just my 2 cents. Hope this helps. Ciao, Tito ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: Race in reboot/poweroff path at init?

2017-10-10 Thread Tito
ed poweroff/reboot events? > >Regards, > > >Jeremy >___ >busybox mailing list >busybox@busybox.net >http://lists.busybox.net/mailman/listinfo/busybox Hi, just a silly idea: would running the poweroff or reboot signal in a loop do

Re: [PATCH] telnet: busybox telnet autologin with -a -l user option picks incorrect username

2017-08-17 Thread Tito
s, the above change works . Checked with -a, -l and giving both options ! Thanks Athira Rajeev Hi, why not (untested): #if ENABLE_FEATURE_TELNET_AUTOLOGIN G.autologin = getenv("USER"); getopt32(argv, "al:", ); argv += optind; #else argv

Re: [PATCH] miscutils/microcom: Fixed segfault

2017-08-02 Thread Tito
]); device_lock_file = xasprintf("/var/lock/LCK..%s", device_lock_file); ciao, Tito ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: [PATCH] ash: special treatment for 'busybox' in standalone shell mode

2017-07-26 Thread Tito
/sh # cp /usr/lib/os-release container/usr/lib # systemd-nspawn --bind-ro=/lib64 -D container Ron Hi, a stupid question: wouldn't a symlink solve the problem? ln -s sh busybox Ciao, Tito ___ busybox mailing list busybox@busybox.net http

Re: [PATCH v2 4/9] setpriv: dump no-new-privs info

2017-07-02 Thread Tito
Hi, just a few hints (untested). Ciao, Tito On 07/02/2017 03:42 PM, Patrick Steinhardt wrote: Introduce the ability to dump the state of the no-new-privs flag, which states whethere it is allowed to grant new privileges. --- util-linux/setpriv.c | 11 ++- 1 file changed, 10 insertions

Re: [PATCH v2 3/9] setpriv: dump user and group info

2017-07-02 Thread Tito
Hi, just a few hints (untested). Ciao, Tito On 07/02/2017 03:42 PM, Patrick Steinhardt wrote: > setpriv from util-linux has an option to dump the current state > regarding privilege settings via `--dump`. It prints out information on > the real and effective user and group IDs, supp

Re: [PATCH] Re: ash fails to read $HOME/.profile

2017-06-27 Thread Tito
On 06/27/2017 05:53 PM, Denys Vlasenko wrote: > On Mon, Jun 26, 2017 at 10:11 PM, Tito <farmat...@tiscali.it> wrote: >> Hi, >> the attached patch should fix the "ash fails to read $HOME/.profile" bug >> when ENABLE_ASH_EXPAND_PRMT is not set. >> Kp cou

[PATCH] Re: ash fails to read $HOME/.profile

2017-06-26 Thread Tito
On 06/26/2017 09:07 PM, Tito wrote: On 06/26/2017 06:37 PM, KP.Kirchdoerfer wrote: Am Sonntag, 25. Juni 2017, 22:01:34 schrieb Tito: On 06/25/2017 04:20 PM, KP.Kirchdoerfer wrote: HI; Am Samstag, 24. Juni 2017, 22:03:36 schrieb Tito: On 06/24/2017 06:21 PM, KP.Kirchdoerfer wrote: Hi

Re: ash fails to read $HOME/.profile

2017-06-26 Thread Tito
On 06/26/2017 06:37 PM, KP.Kirchdoerfer wrote: Am Sonntag, 25. Juni 2017, 22:01:34 schrieb Tito: On 06/25/2017 04:20 PM, KP.Kirchdoerfer wrote: HI; Am Samstag, 24. Juni 2017, 22:03:36 schrieb Tito: On 06/24/2017 06:21 PM, KP.Kirchdoerfer wrote: Hi; I'm using busybox 1.25.1 and when

Re: ash fails to read $HOME/.profile

2017-06-25 Thread Tito
On 06/25/2017 04:20 PM, KP.Kirchdoerfer wrote: HI; Am Samstag, 24. Juni 2017, 22:03:36 schrieb Tito: On 06/24/2017 06:21 PM, KP.Kirchdoerfer wrote: Hi; I'm using busybox 1.25.1 and when loggingin as root it successfully reads /root/.profile. Running latest busybox snapshot this fails due

Re: ash fails to read $HOME/.profile

2017-06-24 Thread Tito
What can be wrong on my side and needs to be changed for a newer busybox version? TIA kp Hi, is the HOME var set correctly in the environment after login in as set in the users' /etc/passwd entry? Like e.g: HOME='/home/tito' Is the /etc/passwd file entry correct? tito:x:1000:1000:tito

Re: [PATCH v2] setpriv: new applet

2017-05-14 Thread Tito
Hi, just some hints to shrink the code. Ciao, Tito On 05/14/2017 02:46 PM, Assaf Gordon wrote: > Add a minimal 'setpriv' implementation supporting the NO_NEW_PRIVS bit. > As upstream only supports long options (--nnp/--no-new-privs), > A non-standard "-N" option is also a

Re: [PATCH] add lsscsi implementation

2017-04-07 Thread Tito
Hi, you forgot to attach the patch? Ciao, Tito On 04/07/2017 07:12 PM, Markus Gothe wrote: Please see attached patch. This is a minimal lsscsi which is useful for getting information about USB-disks and other devices populating the SCSI bus in Linux. BR, //Markus - The panama-hat hacker

Re: [PATCH] add paste implementation

2017-03-11 Thread Tito
Hi, a few more hints. Hope this helps. Ciao, Tito On 03/11/2017 12:18 PM, Maxime Coste wrote: Applied the suggested changes, except for dynamically allocating the files array. I can do it if thats preferred. I traced the getopt32 call to make sure, and it does not touch the argument pointer

Re: kill builtin in ash might behave like killall

2017-03-03 Thread Tito
inary and create a second binary that contains only the killall applet and rename it killall, if space is not a problem. Ciao, Tito ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

[PATCH ] fix some typos in README_distro_proposal.txt

2016-12-27 Thread Tito
Hi, attached you will find a patch that fixes some typos in README_distro_proposal.txt. Ciao, Tito Fix some typos in README_distro_proposal.txt. Signed-off-by: Tito Ragusa <farmat...@tiscali.it> --- examples/var_service/README_distro_proposal.txt.orig 2016-12-27 21:49:32.0

Re: potential error with adduser

2016-12-14 Thread Tito
On 12/14/2016 09:59 PM, David Henderson wrote: Hey Tito, thanks again for the reply. I'm not sure how that example is disproving my concerns. :) It is still reflecting inaccurate information in /etc/passwd. Dave Hi, in this case you want the information to be inaccurate as you want

  1   2   3   4   5   6   7   >