Re: OpenSSL breaks factor(6)

2020-01-06 Thread Steve Kargl
On Sun, Dec 29, 2019 at 08:02:47AM -0800, Steve Kargl wrote:
> Here's a final attempt at fixing and documenting FreeBSD's factor(6).
> Do what you want with the patch.  With and without OpenSSL, one now
> gets
> 
> % factor +123 123 123 123zabc 123abc +123abc 0x123abc +0x123abc
> 123: 3 41
> 123: 3 41
> 123: 3 41
> 123: 3 41
> 1194684: 2 2 3 29 3433
> 1194684: 2 2 3 29 3433
> 1194684: 2 2 3 29 3433
> 1194684: 2 2 3 29 3433
> 
> * usr.bin/factor/factor.6:
>   . Update documentation to note that hexadecimal strings are accepted.
>   . Document that a hexadecimal number can have an optional 0x or 0X prefix.
>   . Document that a 0 value in interactive mode terminates factor(6).
>   . Fix the maximum value for 'stop' in primes(6).
>   . While here, spell "white-space" as "whitespace" and "non-digit" as
> "nondigit".
> 
> * usr.bin/factor/factor.c:
>   . Include stdbool to get acces to bool type.
>   . Use consistent style for function prototypes.
>   . New function. is_hex_str() looks for the longest substring and 
> determines if it is a hexadecimal number.
>   . New function.  Factor (pun intended) out common code into 
> convert_str2bn().
>   . For the WIHTOUT_OPENSSL case, make BN_dec2bn() and BN_hex2bn() return 0
> on error like their OpenSSL counterparts.
> 
> * usr.bin/primes/primes.c:
>   . Fix comment.
>  

This is now

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243136

-- 
steve
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Lockdown adaX numbers to allow booting ?

2020-01-06 Thread Kurt Jaeger
Hi!

> > > You're probably looking for this:
> > > https://lists.freebsd.org/pipermail/freebsd-fs/2011-March/011036.html
> > 
> > Thanks, that looks like a very useful approach.
> > 
> > Will test that when I'm in the housing facility, and report back.
> 
> I tested it, no change 8-(

Update on this: I did an upgrade to 12.1p1 yesterday and the box
rebooted sucessfully without any manual intervention. The mapping
from /boot/device.hints is ignored, btw (it requested different adaX numbers).

The data pool:

NAMESTATE READ WRITE CKSUM
bck ONLINE   0 0 0
  raidz2-0  ONLINE   0 0 0
ada0ONLINE   0 0 0
ada10   ONLINE   0 0 0
ada2ONLINE   0 0 0
ada3ONLINE   0 0 0
ada13   ONLINE   0 0 0
ada12   ONLINE   0 0 0
ada11   ONLINE   0 0 0
ada1ONLINE   0 0 0

The boot pool:

NAMESTATE READ WRITE CKSUM
zroot   ONLINE   0 0 0
  mirror-0  ONLINE   0 0 0
ada5p3  ONLINE   0 0 0
ada4p3  ONLINE   0 0 0

-- 
p...@opsec.eu+49 171 3101372Now what ?
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"