1634 Commits

Author SHA1 Message Date
Augustin Cavalier
a055d42d5b pkgman: Change the update prompt to be "yes/no" instead of "y/n".
Matches the text used elsewhere on the system (and that of the "add-repo"
command.) You can still type a single character to confirm/deny.

Fixes #11260.
2016-07-29 19:39:55 -04:00
Dario Casalinuovo
6db16da47a playfile: Make it to accept URLs along with files
* Users can now use it to play web radios.
* Also useful to show easy is to adapt old code.
2016-07-08 23:02:56 +02:00
Axel Dörfler
7dc0c7b52d cddb_lookup: Support multiline track response.
* This fixes bug #12808.
* Also, don't accept track numbers above 99, as that's the maximum
  a CD supports.
2016-07-05 20:13:34 +02:00
Axel Dörfler
3008268c9d cddb_lookup: verbose now dumps server response.
* The pretty dump output is now only used for the -d and -i options.
2016-07-05 20:13:09 +02:00
Axel Dörfler
df53a4bf21 cddb_lookup: Added options, allow dump/verbose output.
* Added option to dump the track info, and optionally not write the
  data back.
* Added option to use an alternative server.
* Added option to dump verbose track info.
* Added ability to query the CDDB without actual CD in the drive by
  providing category and CDDB ID.
* Added help text.
2016-07-05 20:12:31 +02:00
Axel Dörfler
768544f677 cddb_lookup: Cleanup.
* Use BNode::WriteAttrString() over WriteAttr().
* Use stderr for error output, print error codes when available.
* Use BObjectList instead of just a BList.
* No functional change intended.
2016-07-05 20:11:57 +02:00
Jérôme Duval
5c3f988250 listusb: fix 64-bit warnings. 2016-07-01 15:09:16 +02:00
Murai Takashi
fc1d8972ac cddb_server.cpp: fix clang warnings
Since 'port' is int32, use INT32_MAX and INT32_MIN
instead of LONG_MAX and LONG_MIN.

Signed-off-by: Dario Casalinuovo <b.vitruvio@gmail.com>
2016-06-27 23:31:11 +02:00
Andrew Lindesay
fa2dd9c45f BPackageInfo::Parser: Validate URL strings.
Fixes #12710.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
I fixed the modifications to the Jamfiles in src/bin, they were all wrong
in the patch.
2016-06-18 18:40:07 -04:00
Julian Harnath
4fab1ac618 ifconfig: add "[-]ht" control option for WLAN devices
* "ht" and "-ht" enable or disable the use of HT mode
  (high throughput, 802.11n) for the wireless network device

* Analogous to the option with the same name in FreeBSD's ifconfig

* Disabling HT before associating with an AP is a workaround for
  connection instability issues encountered with iprowifi4965
  driver
2016-03-15 21:59:03 +01:00
Alexander G. M. Smith
f765016ffd mail: Detect terminal input, end of file, better argument parsing.
* If the input is a terminal rather than a file or pipe, only then look
  for the single period on a line as end of text.  Also look for end of
  file as an end of the text, so that piped in text works.
* Parse multiple e-mail addresses properly, adding a comma between them
  (a space doesn't work).  Also allow mixing of "to" e-mail addresses
  and command line switches, previously all "to" addresses had to be
  at the end.
* Fewer blank lines in the output, make it look nicer, remove things
  like a redundant display of the body text before text was read.  Also
  no output text when just piping in a message.
* Avoid buffer overrun by using fgets instead of gets.
* Use stderr for text the user likely doesn't want to save, and for
  prompts that would be invisible if stdout was redirected to a file.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-03-02 22:11:15 -05:00
Pete Goodeve
7beac31fbc addattr: Fix some deficiencies.
The addattr didn't quite match its help text, wrt the kinds of values one can
use for type codes. Aside from the list of named types (which isn't actually
quite complete compared to the choices in the source) the help said one can
enter "numeric values", and gives both hex and decimal examples.

However, trying a hex value didn't work -- only decimal numbers were accepted.
This turned out to be because the sscanf format option is "%u" (actually
B_SCNu32) which only handles decimal. It has to be B_SCNi32 (which means it
would be allowed to enter a negative value -- just not very sensible...) The
other example entry given is " 'ABCD' ", which apparently is meant to indicate
that one can enter 'FourCC' direct type-code representations, but of course
that wouldn't work as shown because the shell strips off the quotes. Escaping
the quotes -- \'ABCD\' -- or adding a second layer -- "'ABCD'" -- does work
but is not obvious. (I can't think of any other command line that requires
such a convention.)

I have added another option: "-c ABCD". The current way can
still work, but the new option should be fairly evident to anyone.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Fixes #12562.
2016-01-27 19:38:09 -05:00
Hannah
8376bc1bc1 screeninfo:also print all supported bitmap overlay colorspaces 2016-01-23 22:33:01 +01:00
Augustin Cavalier
83082f2e9c mail_utils/mail: Reformat & fix a few error handling problems. 2016-01-20 13:28:46 -05:00
Augustin Cavalier
2037db1489 bin/mail: move to 'mail_utils' subdir. 2016-01-20 13:28:46 -05:00
Rene Gollent
8028ede7db Build: Add architecture rule for libshared.a.
- As suggested by Ingo, add libshared.a to the architecture name map.
  This allows it to be linked by its short name like other frequently
  used libraries.
- Adjust all Jamfiles referencing the lib accordingly.
2016-01-15 21:12:24 -05:00
Axel Dörfler
90fd6af0b6 launch_daemon: Added ability to enable/disable a job.
* Instead of just starting/stopping it.
* Also available via the launch_roster command.
2016-01-12 16:22:47 +01:00
François Revol
1150f8cbd4 screeninfo: fix warning 2016-01-10 00:18:59 +01:00
François Revol
0e15d112ea screeninfo: iterate using BScreen::SetToNext()
Note it leaves the current object valid on error, so you can't use
IsValid() as the for loop test.
2016-01-10 00:18:59 +01:00
François Revol
dc422da1a5 WindowShade: fix build 2016-01-07 21:10:50 +01:00
François Revol
5dc097412d dragger: use EXIT_SUCCESS/EXIT_FAILURE macros for clarity 2016-01-07 02:13:41 +01:00
François Revol
82af81ac2e draggers: fix header 2016-01-07 02:13:41 +01:00
François Revol
be1b88453c draggers: print usage on unknown arguments
also handle on/off as arguments.
2016-01-07 02:13:41 +01:00
looncraz
f696e88a2c Convert various more things to using Set*UIColor.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0038, 0040, 0042-0044 from looncraz, unmodified.
2016-01-04 07:29:14 -05:00
looncraz
f0650dc98f preferences: Convert to using Set*UIColor.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0023-0037 from looncraz, unmodified.
2016-01-04 07:21:14 -05:00
mshlyn
e3724c38cb PPP: Port to the new stack.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>

This is a squash of the 42 commits by @mshlyn, as I couldn't find a
way to break them into logical chunks. I did not include these in the build,
as it appears that they only partially work anyway, and much more cleanup is
still needed. However, this is a huge improvement on what was in the tree
before, which looked horrendous and didn't even compile (as it was designed
for the old stack).

Mostly fixes #812.
2016-01-02 07:22:13 -05:00
François Revol
57346752bb listfont: remove (broken) check for R5 bug 2015-12-30 19:56:01 +01:00
Axel Dörfler
e69a3a86fc strace: Added option to dump syscall stats.
* Use -c/-C (same as in Linux's strace) to enable the stat output.
* Former -c to turn of colored output is now --no-color.
2015-12-22 19:35:09 +01:00
Axel Dörfler
ea3e5d43d5 passwd: Fixed copy&paste error in error message. 2015-11-28 13:59:19 +01:00
Jérôme Duval
69a973e2f7 screen_blanker: fix warning. 2015-11-23 20:48:15 +01:00
Jérôme Duval
af585d0361 pkgman search: Add --requirements option 2015-11-20 20:55:12 +01:00
Adrien Destugues
43c2927886 pkgman: show old version when updating packages. 2015-11-13 11:02:49 +01:00
Axel Dörfler
7406866340 launch_roster: The beginnings of a launch_daemon control tool. 2015-11-08 00:09:26 +01:00
Michael Lotz
271f422a92 listsem: Clean up format strings to use format macros.
Fixes printing values on x86_64.
2015-11-04 00:11:16 +01:00
Axel Dörfler
cfe6baf62f cddb_daemon: renamed to cddb_lookup, moved to /src/bin.
* It's now a standard command line tool that is launched automatically
  via the launch_daemon whenver a volume is mounted.
2015-10-19 21:21:21 +02:00
François Revol
045af160e7 df: silently accept -h
Traditional Unix 'df' use -h for human readable units.
I always end up typing 'df -h' so it's frustrating to see the usage there.
2015-09-17 00:29:50 +02:00
François Revol
490dc7aa16 keymap: avoid showing usage twice 2015-09-17 00:22:13 +02:00
Michael Lotz
0a6d595951 Add system_time to the Jamfile, missed in hrev49598. 2015-08-29 19:33:27 +02:00
Michael Lotz
b11eb89c2d Add system_time bin command which just prints system_time().
This can be used by scripts to do verious performance measurements.
Specifically it can be used to measure the boot time since it represents
the uptime.
2015-08-29 19:15:47 +02:00
Dario Casalinuovo
1c3d7e0c68 MixerControl: Add more safeness for Roster() errors 2015-08-28 18:27:16 +02:00
Michael Lotz
dfcf52c9f1 leak_analyser: Update excludes with more generic regex for ICU.
Also add initialize_before of libroot to the default excludes.
2015-08-13 22:34:51 +02:00
Michael Lotz
f474606ee9 libroot_debug: Merge guarded heap into libroot_debug.
The individual debug heap implementations are now exposed via a
structure of function pointers and a common frontend dispatches the
malloc and malloc_debug APIs through them.

The MALLOC_DEBUG environment variable can be used to select the guarded
heap by adding 'g', otherwise the debug heap is used as the default.
Consequently the separate libroot_guarded is not needed anymore and has
been removed.

To allow the use of environment variables this early, init_env_post_heap
has been added and the heap dependent atfork() moved there. This allowed
to fold the code of init_heap_post_env into init_heap so the former has
been removed.
2015-08-13 22:12:18 +02:00
Jérôme Duval
827cdc0134 ftp: declares header dependencies on libedit. 2015-08-13 18:58:35 +02:00
Jérôme Duval
ed92a10520 diffutils: use the outsourced packages.
* remove diffutils Jamfile from the build and diffutils sources from the tree.
2015-08-01 14:04:10 +02:00
Dario Casalinuovo
3f5483c79b desklink: Fix problems with BMediaRoster Quit
* Improved the situation so that it should be always
  synchronized. Improved error message, and detection
  of media services not being run.
2015-07-27 18:28:53 +02:00
Jérôme Duval
66fdfe3270 setmime: hash() conflicts with std::hash.
* found with GCC6
2015-07-25 23:42:13 +02:00
Dario Casalinuovo
92ab0a8c3a VolumeControl: Add support for media services notifications 2015-07-24 12:19:33 +02:00
Axel Dörfler
f7b5ecfe00 hey: Added -h and --help for usage text.
* Didn't do anything before that.
* Removed some useless comments.
* This file could really need a cleanup.
2015-07-22 20:44:57 +02:00
Axel Dörfler
05a567f609 Added autologin command, and use it by default.
* This will handle our current single-user login needs.
* Removed Login from the minimum image again.
2015-07-22 20:43:54 +02:00
Axel Dörfler
cb82874e92 multiuser_utils: Fixed verifying empty password.
* verify_password() would accept all passwords if the there was
  none set, instead of accepting only an empty password.
2015-07-22 20:43:17 +02:00