[bug #18121] calculation of major and minor device numbers is not portable

2006-10-26 Thread Martin Koeppe

URL:
  http://savannah.gnu.org/bugs/?18121

 Summary: calculation of major and minor device numbers is
not portable
 Project: GNU Midnight Commander
Submitted by: m_koeppe
Submitted on: Donnerstag 26.10.2006 um 13:19
Category: Screen output
Severity: 3 - Normal
  Status: None
 Privacy: Public
 Assigned to: None
 Open/Closed: Open
 Release: 4.6.1
Operating System: Other

___

Details:

On Interix aka Services for Unix the calculation of major and minor device
numbers doesn't work. major is (dev24)0xff there, not (dev8)0xff. I
have attached a patch which makes use of the system major()/minor() macros if
available.






___

File Attachments:


---
Date: Donnerstag 26.10.2006 um 13:19  Name: 70_dev-major-minor.patch  Size:
919B   By: m_koeppe
patch for screen.c
http://savannah.gnu.org/bugs/download.php?file_id=11077

___

Reply to this item at:

  http://savannah.gnu.org/bugs/?18121

___
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


[bug #18121] calculation of major and minor device numbers is not portable

2006-10-26 Thread Roland Illig

Update of bug #18121 (project mc):

  Status:None = Fixed  
 Assigned to:None = rillig 
 Open/Closed:Open = Closed 

___

Follow-up Comment #1:

This patch does not apply to the CVS version of mc. The major/minor
definition is now handled in src/unixcompat.h, and I think your Interix case
is well handled.

Please try the current CVS version of mc.

Note: There are currently no plans to apply patches to the mc-4.6.1 release.
Development only takes place in the CVS version, and will be released some
time in the future.

Roland


___

Reply to this item at:

  http://savannah.gnu.org/bugs/?18121

___
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


File has hard-links. Detach before saving?

2006-10-26 Thread Nerijus Baliunas
Hello,

now this dialog's default is Yes. But, for example, default Fedora installation
has /etc/resolv.conf and /etc/sysconfig/networking/profiles/default/resolv.conf
hardlinked. In this case I don't want to detach. So I propose default to be No.

Regards,
Nerijus
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: File has hard-links. Detach before saving?

2006-10-26 Thread Oswald Buddenhagen
On Fri, Oct 27, 2006 at 05:12:00AM +0300, Nerijus Baliunas wrote:
 now this dialog's default is Yes. But, for example, default Fedora
 installation has /etc/resolv.conf and
 /etc/sysconfig/networking/profiles/default/resolv.conf hardlinked. In
 this case I don't want to detach. So I propose default to be No.
 
i'm strictly opposed. it would make working with cloned source trees
harder. and i'm pretty sure that my use case is sort of more common than
yours. :-P
fwiw, i think the setup you described is totally braindead. it's just a
matter of time until some other editor detaches the file. one of the
files should be a symlink to the other one.

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel